* src/expiry.c: Use Basename for Prog.

* src/expiry.c: Added missing OPENLOG.
This commit is contained in:
nekral-guest 2008-08-30 18:34:04 +00:00
parent 6598f82111
commit cdf963b2b3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* src/expiry.c: Use Basename for Prog.
* src/expiry.c: Added missing OPENLOG.
2008-08-27 Nicolas François <nicolas.francois@centraliens.net> 2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
* lib/nscd.c: Make sure the file is not empty when configured * lib/nscd.c: Make sure the file is not empty when configured

View File

@ -72,7 +72,7 @@ int main (int argc, char **argv)
struct passwd *pwd; struct passwd *pwd;
struct spwd *spwd; struct spwd *spwd;
char *Prog = argv[0]; char *Prog = Basename (argv[0]);
sanitize_env (); sanitize_env ();
@ -94,6 +94,8 @@ int main (int argc, char **argv)
(void) bindtextdomain (PACKAGE, LOCALEDIR); (void) bindtextdomain (PACKAGE, LOCALEDIR);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
OPENLOG ("expiry");
if ( (argc != 2) if ( (argc != 2)
|| ( (strcmp (argv[1], "-f") != 0) || ( (strcmp (argv[1], "-f") != 0)
&& (strcmp (argv[1], "-c") != 0))) { && (strcmp (argv[1], "-c") != 0))) {