|
@ -10,7 +10,7 @@ |
|
|
#define MAX_GROUPS 100 /* max number of supplementary groups for user */ |
|
|
#define MAX_GROUPS 100 /* max number of supplementary groups for user */ |
|
|
|
|
|
|
|
|
static char *binary(unsigned long value) |
|
|
static char *binary(unsigned long value) |
|
|
@@ -756,10 +759,10 @@ int main(int argc, char *argv[], char *envp[])
|
|
|
|
|
|
|
|
|
@@ -768,10 +771,10 @@ int main(int argc, char *argv[], char *envp[])
|
|
|
} else if (!strcmp("--print", argv[i])) { |
|
|
} else if (!strcmp("--print", argv[i])) { |
|
|
arg_print(); |
|
|
arg_print(); |
|
|
} else if ((!strcmp("--", argv[i])) || (!strcmp("==", argv[i]))) { |
|
|
} else if ((!strcmp("--", argv[i])) || (!strcmp("==", argv[i]))) { |
|
@ -21,9 +21,9 @@ |
|
|
- fprintf(stderr, "execve /bin/bash failed!\n");
|
|
|
- fprintf(stderr, "execve /bin/bash failed!\n");
|
|
|
+ fprintf(stderr, "execve " SHELL " failed!\n");
|
|
|
+ fprintf(stderr, "execve " SHELL " failed!\n");
|
|
|
exit(1); |
|
|
exit(1); |
|
|
} else { |
|
|
|
|
|
usage: |
|
|
|
|
|
@@ -789,7 +792,7 @@ int main(int argc, char *argv[], char *envp[])
|
|
|
|
|
|
|
|
|
} else if (!strncmp("--has-p=", argv[i], 8)) { |
|
|
|
|
|
cap_value_t cap; |
|
|
|
|
|
@@ -869,7 +872,7 @@ int main(int argc, char *argv[], char *envp[])
|
|
|
" --killit=<n> send signal(n) to child\n" |
|
|
" --killit=<n> send signal(n) to child\n" |
|
|
" --forkfor=<n> fork and make child sleep for <n> sec\n" |
|
|
" --forkfor=<n> fork and make child sleep for <n> sec\n" |
|
|
" == re-exec(capsh) with args as for --\n" |
|
|
" == re-exec(capsh) with args as for --\n" |
|
|