* Removed killall-statement from postinst. Thanks to James Troup for
reporting it. * Added chdir("/") to both daemons (fixes: Bug#17601)
This commit is contained in:
parent
be8b841a11
commit
e7509db5e3
1
klogd.c
1
klogd.c
@ -864,6 +864,7 @@ int main(argc, argv)
|
|||||||
auto char *log_level = (char *) 0,
|
auto char *log_level = (char *) 0,
|
||||||
*output = (char *) 0;
|
*output = (char *) 0;
|
||||||
|
|
||||||
|
chdir ("/");
|
||||||
/* Parse the command-line. */
|
/* Parse the command-line. */
|
||||||
while ((ch = getopt(argc, argv, "c:df:iIk:nopsvx")) != EOF)
|
while ((ch = getopt(argc, argv, "c:df:iIk:nopsvx")) != EOF)
|
||||||
switch((char)ch)
|
switch((char)ch)
|
||||||
|
@ -681,6 +681,7 @@ int main(argc, argv)
|
|||||||
extern int optind;
|
extern int optind;
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
|
|
||||||
|
chdir ("/");
|
||||||
while ((ch = getopt(argc, argv, "dhf:l:m:np:rs:v")) != EOF)
|
while ((ch = getopt(argc, argv, "dhf:l:m:np:rs:v")) != EOF)
|
||||||
switch((char)ch) {
|
switch((char)ch) {
|
||||||
case 'd': /* debug */
|
case 'd': /* debug */
|
||||||
|
Loading…
Reference in New Issue
Block a user