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);