From 5c04fe9b61b1765b153aa732d5bfda8981123f65 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 9 Aug 2008 23:24:15 +0000 Subject: [PATCH] Added missing Prog. --- src/pwunconv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pwunconv.c b/src/pwunconv.c index c392c349..fb6d2af8 100644 --- a/src/pwunconv.c +++ b/src/pwunconv.c @@ -47,6 +47,7 @@ /* * Global variables */ +static char *Prog; static bool shadow_locked = false; static bool passwd_locked = false; @@ -79,7 +80,7 @@ int main (int argc, char **argv) struct passwd pwent; const struct spwd *spwd; - char *Prog = argv[0]; + Prog = Basename (argv[0]); (void) setlocale (LC_ALL, ""); (void) bindtextdomain (PACKAGE, LOCALEDIR);