]> granicus.if.org Git - shadow/commitdiff
* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 22 Aug 2010 19:36:09 +0000 (19:36 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 22 Aug 2010 19:36:09 +0000 (19:36 +0000)
src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/chage.c,
src/groupadd.c, src/login.c, src/grpconv.c, src/groups.c,
src/grpunconv.c, src/chsh.c: Prog changed to a constant string.

28 files changed:
ChangeLog
src/chage.c
src/chfn.c
src/chgpasswd.c
src/chpasswd.c
src/chsh.c
src/expiry.c
src/gpasswd.c
src/groupadd.c
src/groupdel.c
src/groupmems.c
src/groupmod.c
src/groups.c
src/grpck.c
src/grpconv.c
src/grpunconv.c
src/login.c
src/logoutd.c
src/newgrp.c
src/newusers.c
src/passwd.c
src/pwck.c
src/pwconv.c
src/pwunconv.c
src/su.c
src/useradd.c
src/userdel.c
src/usermod.c

index 86658fbeef0d7174cabdbeb70699eb9c8ebcc23f..acb16c9c0b05f67dd503b9a80b8239059ad24d99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-08-22  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
+       src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
+       src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
+       src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
+       src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/chage.c,
+       src/groupadd.c, src/login.c, src/grpconv.c, src/groups.c,
+       src/grpunconv.c, src/chsh.c: Prog changed to a constant string.
+
 2010-08-22  Nicolas François  <nicolas.francois@centraliens.net>
 
        * libmisc/limits.c: Avoid implicit conversion of integer to
index 55afb9985812c5e1e761ec48e3b7326342f58aaf..110445a22e527e77f55c20a41e452077302dd98b 100644 (file)
@@ -65,7 +65,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool
     dflg = false,              /* set last password change date */
index 677fc2f0e8eb0e114f140c6831d75630d566e9ea..8857c8f128faaf6ed52e7d53fc89dff4451f69a8 100644 (file)
@@ -58,7 +58,7 @@
 /*
  * Global variables.
  */
-char *Prog;
+const char *Prog;
 static char fullnm[BUFSIZ];
 static char roomno[BUFSIZ];
 static char workph[BUFSIZ];
index da4560effbc3f79876dca0fa5e162dad2ea9f2f1..146f6219b66cf5a8a13d58d369436854c00f9148 100644 (file)
@@ -57,7 +57,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 static bool cflg   = false;
 static bool eflg   = false;
 static bool md5flg = false;
index 55f8312f544917c6ffd5de36ab339ed7cf73979d..374155065971b6a1707dd7b88f1ba1384dca3c12 100644 (file)
@@ -53,7 +53,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 static bool cflg   = false;
 static bool eflg   = false;
 static bool md5flg = false;
index 21d3b8b4d9071807c6f364e8966b74922c01a199..d93a80915ee07fb1754bee17230355f9940e9f6f 100644 (file)
@@ -61,7 +61,7 @@
 /*
  * Global variables
  */
-char *Prog;            /* Program name */
+const char *Prog;              /* Program name */
 static bool amroot;            /* Real UID is root */
 static char loginsh[BUFSIZ];   /* Name of new login shell */
 /* command line options */
index c284d7c089d778f25e723cf4dd95b9ec55ac10ab..6718727b542def4a5baa3e202c522a257ab5d090 100644 (file)
@@ -42,7 +42,7 @@
 #include "prototypes.h"
 
 /* Global variables */
-char *Prog;
+const char *Prog;
 
 /* local function prototypes */
 static RETSIGTYPE catch_signals (int);
index 9c6ca6a2294372b1bf874b68fe2b6a7a86f1cf2b..ba854fbd84b4b00833696d984f183bb4387870c3 100644 (file)
@@ -56,7 +56,7 @@
  * Global variables
  */
 /* The name of this command, as it is invoked */
-char *Prog;
+const char *Prog;
 
 #ifdef SHADOWGRP
 /* Indicate if shadow groups are enabled on the system
index 35b1da18c264d1d598e095c31a03cbe87073499f..18d0d5849b508c87a91613da54df3c56767c9fbf 100644 (file)
@@ -70,7 +70,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static /*@null@*/char *group_name;
 static gid_t group_id;
index 569cec4e055c18c0cef1a7ea4241da6dc46b4e12..afd28b1b657775a2dbac84617e83478fda1853a8 100644 (file)
@@ -55,7 +55,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static char *group_name;
 static gid_t group_id = -1;
index 8202cf90c30991328b8364131183cab5421e047e..5bb2ebe353bf9ea1904506f744288e711eab4629 100644 (file)
@@ -64,7 +64,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static char *adduser = NULL;
 static char *deluser = NULL;
index da6d77f2c7ba6e01d362d8cd4d4b6b04fd1bdd39..7d0d3fbcaea23b6cf7b04ed8eb79a9466da549ef 100644 (file)
@@ -69,7 +69,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 #ifdef SHADOWGRP
 static bool is_shadow_grp;
index 3c5ae9802fdb85db8bece787e774c23859a2beff..fcd669b0afd197e6ea10db19853c579b96d90525 100644 (file)
@@ -42,7 +42,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 /* local function prototypes */
 static void print_groups (const char *member);
index 15d5f9fba0814a3eb6183f365d547fbe2357493e..b0ae23a9cee34992a9779ec07ddbb1de32ee8218 100644 (file)
@@ -64,7 +64,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static const char *grp_file = GROUP_FILE;
 static bool use_system_grp_file = true;
index 18aa265969d98323d534294c9b80baa2c09fe828..86038bdee76472ccdfd218e6900e44716071fb99 100644 (file)
@@ -53,7 +53,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool gr_locked  = false;
 static bool sgr_locked = false;
index f7235295bb656eb5025ddaff3f061a95a2ea29c0..d55f1831a52e178c7d92eadb5455876acc24d425 100644 (file)
@@ -54,7 +54,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool gr_locked  = false;
 static bool sgr_locked = false;
index e97e0b788c42616118626b632300cf823c7d6426..c24fc860d7cfb4f75b790acefed37c4eeab9d93b 100644 (file)
@@ -82,7 +82,7 @@ static pam_handle_t *pamh = NULL;
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static const char *hostname = "";
 static /*@null@*/ /*@only@*/char *username = NULL;
index 45484923a9fba351dc2120874f739003ec999ead..1503a743ac61f49f8e16840256c126227986b40f 100644 (file)
@@ -43,7 +43,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 #ifndef DEFAULT_HUP_MESG
 #define DEFAULT_HUP_MESG _("login time exceeded\n\n")
index 10204c7c656a48d4bb2f6275924861bf74f55c9c..578387aa6731ac42d1a6807866ac8149bc9c1c8c 100644 (file)
@@ -48,7 +48,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 extern char **newenvp;
 extern char **environ;
index 62cd3daa79613aa5655e79a62f02107c60d25126..92459de70156b001792b6459d3084e74f10c3124 100644 (file)
@@ -70,7 +70,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool rflg = false;      /* create a system account */
 #ifndef USE_PAM
index ba88b2d528be748b75f56ee1e0c4de745c1a96e1..2a357f2a119c87053b3d6dfb3ca34e43c97fd253 100644 (file)
@@ -70,7 +70,7 @@
 /*
  * Global variables
  */
-char *Prog;                    /* Program name */
+const char *Prog;              /* Program name */
 
 static char *name;             /* The name of user whose password is being changed */
 static char *myname;           /* The current user's name */
index 316797f100852469d71936987e89f2bd41997cef..fe0e84acb1725f1a46508c14a2a9b3989f1be618 100644 (file)
@@ -66,7 +66,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool use_system_pw_file = true;
 static bool use_system_spw_file = true;
index 07a7d7192c0e86f6fb3f177a5a027b4773db9533..8d004504089e20e517078e60996b547fb9c50514 100644 (file)
@@ -86,7 +86,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool spw_locked = false;
 static bool pw_locked = false;
index 828767182eb83b6146b37d9c1899b124a6cd3fee..3d27e964c582f0930b3556941f21725ef2f1866c 100644 (file)
@@ -48,7 +48,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static bool spw_locked = false;
 static bool pw_locked = false;
index 304bb2815c99c7cf2dc88c5fc2867de2486c8312..e45702f9e0e1afaf521ccda747d608bfb1584657 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -77,7 +77,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 /* not needed by sulog.c anymore */
 static char name[BUFSIZ];
index 0b15a8f588c5d9f4cff1779950aa79c34b78a3ef..e8348b9f0718fa484c37e6c25b920d9aad2ceeae 100644 (file)
@@ -85,7 +85,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 /*
  * These defaults are used if there is no defaults file.
index 817464ed84e76806ceaa47b6bc8dad832df300c4..8f2ac0fec1a6a00fb9de54f83c4e08ab16fbcfd9 100644 (file)
@@ -78,7 +78,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static char *user_name;
 static uid_t user_id;
index 5918cbd3688c11f64c55739221efa5266b415f90..636c12d2f77ce3f9319d4ac32b9bcaa58892dd93 100644 (file)
@@ -89,7 +89,7 @@
 /*
  * Global variables
  */
-char *Prog;
+const char *Prog;
 
 static char *user_name;
 static char *user_newname;