needs a file visibility.
* src/grpunconv.c: Likewise.
+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.
/*
* 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);
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);
/*
* 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);
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);