git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary code, use const where appropriate
[util-vserver.git]
/
src
/
vsh.c
diff --git
a/src/vsh.c
b/src/vsh.c
index
0487125
..
cadafc5
100644
(file)
--- a/
src/vsh.c
+++ b/
src/vsh.c
@@
-65,7
+65,7
@@
static int setuidgid_root()
return 0;
}
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;
{
int root_len;
@@
-82,7
+82,7
@@
static void compute_new_root(char *base, char **root, struct passwd *pwd)
(*root)[root_len - 1] = '\0';
}
(*root)[root_len - 1] = '\0';
}
-static int sandbox_chroot(struct passwd *pwd)
+static int sandbox_chroot(
const
struct passwd *pwd)
{
char *sandbox_root = NULL;
{
char *sandbox_root = NULL;