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