diff options
Diffstat (limited to 'sinit.c')
-rw-r--r-- | sinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,7 +22,7 @@ static void sigpoweroff(void); static void sigreap(void); static void sigreboot(void); static void spawn(int (*)(), char *const []); -static void spawn_as(uid_t, gid_t, char *const [], char *const []); +static void spawn_as(uid_t, gid_t, const char *const [], const char *const []); static void mounts(void); static void ifup(const char *iface); @@ -156,7 +156,7 @@ spawn(int (*dep)(), char *const argv[]) } static void -spawn_as(uid_t uid, gid_t gid, char *const env[], char *const argv[]) +spawn_as(uid_t uid, gid_t gid, const char *const env[], const char *const argv[]) { /* printf("spawn_as %d,%d: %s\n", uid, gid, argv[0]); */ switch (fork()) { @@ -168,7 +168,7 @@ spawn_as(uid_t uid, gid_t gid, char *const env[], char *const argv[]) setgid(gid); setgroups(LEN(groups), groups); setuid(uid); - execve(argv[0], argv, env); + execve(argv[0], (char *const *)argv, (char *const *)env); #ifdef SANE write(2, "can't exec\n", 11); _exit(1); |