]> granicus.if.org Git - apache/commitdiff
Make unixd_config.user_name const char * instead of char * to avoid
authorJeff Trawick <trawick@apache.org>
Sun, 18 Jun 2000 03:05:41 +0000 (03:05 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 18 Jun 2000 03:05:41 +0000 (03:05 +0000)
a warning when the set-user-name command handler saves the address of
the arg from the config file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85606 13f79535-47bb-0310-9956-ffa450edef68

os/unix/unixd.c
os/unix/unixd.h

index 4259772df57e06f1060b853b977911cb013ac9e5..8da6ee7ed085810dcf9bf114d22c30691b797d30 100644 (file)
@@ -159,7 +159,7 @@ void unixd_detach(void)
 static int set_group_privs(void)
 {
     if (!geteuid()) {
-       char *name;
+       const char *name;
 
        /* Get username if passed as a uid */
 
index 2a1cee0227ee4f1b4b73b9d36c5299c5d2826f7f..0b9ee5522ad78aefd25642e66bf9e88282feb624 100644 (file)
@@ -77,7 +77,7 @@
 #endif
 
 typedef struct {
-    char *user_name;
+    const char *user_name;
     uid_t user_id;
     gid_t group_id;
 } unixd_config_rec;