diff --git a/ChangeLog b/ChangeLog index 1dc1e808..47c2ee48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-27 Nicolas François + + * src/expiry.c: Use Basename for Prog. + * src/expiry.c: Added missing OPENLOG. + 2008-08-27 Nicolas François * lib/nscd.c: Make sure the file is not empty when configured diff --git a/src/expiry.c b/src/expiry.c index 78d282fd..f12a434c 100644 --- a/src/expiry.c +++ b/src/expiry.c @@ -72,7 +72,7 @@ int main (int argc, char **argv) struct passwd *pwd; struct spwd *spwd; - char *Prog = argv[0]; + char *Prog = Basename (argv[0]); sanitize_env (); @@ -94,6 +94,8 @@ int main (int argc, char **argv) (void) bindtextdomain (PACKAGE, LOCALEDIR); (void) textdomain (PACKAGE); + OPENLOG ("expiry"); + if ( (argc != 2) || ( (strcmp (argv[1], "-f") != 0) && (strcmp (argv[1], "-c") != 0))) {