From cdf963b2b379a5f22cc05412b4c2bf74f18f6949 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 30 Aug 2008 18:34:04 +0000 Subject: [PATCH] * src/expiry.c: Use Basename for Prog. * src/expiry.c: Added missing OPENLOG. --- ChangeLog | 5 +++++ src/expiry.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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))) {