]> granicus.if.org Git - shadow/commitdiff
* src/grpconv.c: Use Basename for the definition of Prog. Prog
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 22 Aug 2008 02:33:08 +0000 (02:33 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 22 Aug 2008 02:33:08 +0000 (02:33 +0000)
needs a file visibility.
* src/grpunconv.c: Likewise.

ChangeLog
src/grpconv.c
src/grpunconv.c

index be3e100f89cb7ccf77694866cfce5a20a1443b8c..23b6872916f2e00a51a671fb8819c4874a50ab91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-21  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/grpconv.c: Use Basename for the definition of Prog. Prog
+       needs a file visibility.
+       * src/grpunconv.c: Likewise.
+
 2008-08-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/chfn.c: Do not exit on pw_unlock failures.
index a245a400910d4ba5d28df15fc17e8fcac86a0fa3..f3dae8dba9a1b8dd477575ea61e464609ab22c14 100644 (file)
@@ -53,8 +53,9 @@
 /*
  * Global variables
  */
-static bool gr_locked   = false;
+static bool gr_locked  = false;
 static bool sgr_locked = false;
+static char *Prog;
 
 /* local function prototypes */
 static void fail_exit (int);
@@ -86,7 +87,8 @@ int main (int argc, char **argv)
        struct group grent;
        const struct sgrp *sg;
        struct sgrp sgent;
-       char *Prog = argv[0];
+
+       Prog = Basename (argv[0]);
 
        (void) setlocale (LC_ALL, "");
        (void) bindtextdomain (PACKAGE, LOCALEDIR);
index 18bf3c5cad7f099b5112a97359809027195cb477..8ed8db0c24bbb9828e3156f986cfab111c6b3613 100644 (file)
@@ -54,8 +54,9 @@
 /*
  * Global variables
  */
-static bool gr_locked   = false;
+static bool gr_locked  = false;
 static bool sgr_locked = false;
+static char *Prog;
 
 /* local function prototypes */
 static void fail_exit (int status);
@@ -86,7 +87,8 @@ int main (int argc, char **argv)
        const struct group *gr;
        struct group grent;
        const struct sgrp *sg;
-       char *Prog = argv[0];
+
+       Prog = Basename (argv[0]);
 
        (void) setlocale (LC_ALL, "");
        (void) bindtextdomain (PACKAGE, LOCALEDIR);