From 9c050c54ef82c7d2b065996ff6a38f3f9baa1d9d Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 9 Aug 2008 23:23:44 +0000 Subject: [PATCH] Added missing Prog. --- src/pwconv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pwconv.c b/src/pwconv.c index bd31160e..e0443d0c 100644 --- a/src/pwconv.c +++ b/src/pwconv.c @@ -83,6 +83,7 @@ /* * Global variables */ +static char *Prog; static bool shadow_locked = false; static bool passwd_locked = false; @@ -118,6 +119,8 @@ int main (int argc, char **argv) struct spwd spent; char *Prog = argv[0]; + Prog = Basename (argv[0]); + (void) setlocale (LC_ALL, ""); (void) bindtextdomain (PACKAGE, LOCALEDIR); (void) textdomain (PACKAGE);