X-Git-Url: http://git.onelab.eu/?p=util-vserver.git;a=blobdiff_plain;f=src%2Fvsh.c;h=cadafc5a6b7ccc745b1e6fb3c26944a9afa97dc0;hp=0487125b800fd342912f7df525a7032db823b52f;hb=5594cc4c22c895396adc5c59d39b294f7b171de1;hpb=5f167675beabb9f55df5fe8a579f87763764cb08 diff --git a/src/vsh.c b/src/vsh.c index 0487125..cadafc5 100644 --- a/src/vsh.c +++ b/src/vsh.c @@ -65,7 +65,7 @@ static int setuidgid_root() return 0; } -static void compute_new_root(char *base, char **root, struct passwd *pwd) +static void compute_new_root(char *base, char **root, const struct passwd *pwd) { int root_len; @@ -82,7 +82,7 @@ static void compute_new_root(char *base, char **root, struct passwd *pwd) (*root)[root_len - 1] = '\0'; } -static int sandbox_chroot(struct passwd *pwd) +static int sandbox_chroot(const struct passwd *pwd) { char *sandbox_root = NULL;