version 1.1.1.1.2.3, 2009/11/12 11:51:50
|
version 1.2, 2011/06/08 12:45:41
|
Line 25 static void Usage()
|
Line 25 static void Usage()
|
"\t-v\t\tVerbose ...\n" |
"\t-v\t\tVerbose ...\n" |
"\t-c <dir>\tAfter execute chroot to dir [default=/]\n" |
"\t-c <dir>\tAfter execute chroot to dir [default=/]\n" |
"\t-u <user>\tAfter execute suid to user [default=root]\n" |
"\t-u <user>\tAfter execute suid to user [default=root]\n" |
"\t-d <dev>\tOther device [default=/dev/ufs/AITBSDonCF]\n" | "\t-d <dev>\tOther device [default=/dev/ufs/elwix]\n" |
"\t-m <mnt>\tOther mount dir [default=/cf]\n" |
"\t-m <mnt>\tOther mount dir [default=/cf]\n" |
"\t-t <sec>\tTimeout for autolock mount dir after seconds [default=300]\n" |
"\t-t <sec>\tTimeout for autolock mount dir after seconds [default=300]\n" |
"\n", compiled, compiledby, compilehost); |
"\n", compiled, compiledby, compilehost); |
Line 239 int main(int argc, char **argv)
|
Line 239 int main(int argc, char **argv)
|
if (strncmp(szUser, "root", 5)) |
if (strncmp(szUser, "root", 5)) |
setuser(); |
setuser(); |
|
|
chdir("/"); | /* chdir("/"); */ |
execvp(*argv, argv); |
execvp(*argv, argv); |
} |
} |
_exit(127); |
_exit(127); |