[Pkg-sysvinit-commits] r1511 - in sysvinit/trunk/debian: . patches
Petter Reinholdtsen
pere at alioth.debian.org
Fri Jul 24 13:30:58 UTC 2009
Author: pere
Date: 2009-07-24 13:30:55 +0000 (Fri, 24 Jul 2009)
New Revision: 1511
Removed:
sysvinit/trunk/debian/patches/52_bootlogd_createlogfile.dpatch
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/patches/00list
Log:
Drop patch 52_bootlogd_createlogfile now included upstream.
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2009-07-24 13:29:08 UTC (rev 1510)
+++ sysvinit/trunk/debian/changelog 2009-07-24 13:30:55 UTC (rev 1511)
@@ -21,6 +21,7 @@
- Drop patch 47_pidof_chroot now included upstream.
- Drop patch 50_bootlogd_exitcode now included upstream.
- Drop patch 51_bootlogd_syncalot now included upstream.
+ - Drop patch 52_bootlogd_createlogfile now included upstream.
- Drop patch 53_bootlogd_ttyB now included upstream.
- Drop patch 60_init_race now included upstream.
Modified: sysvinit/trunk/debian/patches/00list
===================================================================
--- sysvinit/trunk/debian/patches/00list 2009-07-24 13:29:08 UTC (rev 1510)
+++ sysvinit/trunk/debian/patches/00list 2009-07-24 13:30:55 UTC (rev 1511)
@@ -6,7 +6,6 @@
14_doc_fsf_addr
21_ifdown_kfreebsd
46_pidof_symlinkman
-##52_bootlogd_createlogfile
##54_bootlogd_findptyfail
##61_init_msg
##62_init_freebsdterm
Deleted: sysvinit/trunk/debian/patches/52_bootlogd_createlogfile.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/52_bootlogd_createlogfile.dpatch 2009-07-24 13:29:08 UTC (rev 1510)
+++ sysvinit/trunk/debian/patches/52_bootlogd_createlogfile.dpatch 2009-07-24 13:30:55 UTC (rev 1511)
@@ -1,91 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 52_bootlogd_createlogfile.dpatch by <jdthood at yahoo.co.uk>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
-
- at DPATCH@
-diff -urNad --exclude=CVS --exclude=.svn ./man/bootlogd.8 /tmp/dpep-work.PNSf00/trunk/man/bootlogd.8
---- ./man/bootlogd.8 2006-03-19 17:51:42.000000000 +0100
-+++ /tmp/dpep-work.PNSf00/trunk/man/bootlogd.8 2006-03-19 17:51:42.000000000 +0100
-@@ -3,6 +3,7 @@
- bootlogd \- record boot messages
- .SH SYNOPSIS
- .B /sbin/bootlogd
-+.RB [ \-c ]
- .RB [ \-d ]
- .RB [ \-r ]
- .RB [ \-s ]
-@@ -16,6 +17,12 @@
- .SH OPTIONS
- .IP \fB\-d\fP
- Do not fork and run in the background.
-+.IP \fB\-c\fP
-+Attempt to write to the logfile even if it does not yet exist.
-+Without this option,
-+.B bootlogd
-+will wait for the logfile to appear before attempting to write to it.
-+This behavior prevents bootlogd from creating logfiles under mount points.
- .IP \fB\-r\fP
- If there is an existing logfile called \fIlogfile\fP rename it to
- \fIlogfile~\fP unless \fIlogfile~\fP already exists.
-diff -urNad --exclude=CVS --exclude=.svn ./src/bootlogd.c /tmp/dpep-work.PNSf00/trunk/src/bootlogd.c
---- ./src/bootlogd.c 2006-03-19 17:51:42.000000000 +0100
-+++ /tmp/dpep-work.PNSf00/trunk/src/bootlogd.c 2006-03-19 17:52:39.000000000 +0100
-@@ -56,6 +56,7 @@
-
- int got_signal = 0;
- int didnl = 1;
-+int createlogfile = 0;
- int syncalot = 0;
-
- struct line {
-@@ -385,7 +386,7 @@
- */
- void usage(void)
- {
-- fprintf(stderr, "Usage: bootlogd [-v] [-r] [-d] [-p pidfile] [-l logfile]\n");
-+ fprintf(stderr, "Usage: bootlogd [-v] [-r] [-d] [-s] [-c] [-p pidfile] [-l logfile]\n");
- exit(1);
- }
-
-@@ -447,7 +448,7 @@
- rotate = 0;
- dontfork = 0;
-
-- while ((i = getopt(argc, argv, "dsl:p:rv")) != EOF) switch(i) {
-+ while ((i = getopt(argc, argv, "cdsl:p:rv")) != EOF) switch(i) {
- case 'l':
- logfile = optarg;
- break;
-@@ -461,6 +462,9 @@
- case 'p':
- pidfile = optarg;
- break;
-+ case 'c':
-+ createlogfile = 1;
-+ break;
- case 'd':
- dontfork = 1;
- break;
-@@ -613,12 +617,16 @@
- /*
- * Perhaps we need to open the logfile.
- */
-- if (fp == NULL && rotate && access(logfile, F_OK) == 0) {
-- snprintf(buf, sizeof(buf), "%s~", logfile);
-- rename(logfile, buf);
-+ if (fp == NULL && access(logfile, F_OK) == 0) {
-+ if (rotate) {
-+ snprintf(buf, sizeof(buf), "%s~", logfile);
-+ rename(logfile, buf);
-+ }
-+ fp = fopen(logfile, "a");
- }
-- if (fp == NULL)
-+ if (fp == NULL && createlogfile)
- fp = fopen(logfile, "a");
-+
- if (inptr >= outptr)
- todo = inptr - outptr;
- else
More information about the Pkg-sysvinit-commits
mailing list