version 1.1.1.1.2.9, 2011/10/09 18:08:27
|
version 1.2.2.1, 2011/10/09 18:58:44
|
Line 72 Usage()
|
Line 72 Usage()
|
"\t-g <group>\t\t\tGroup for suID\n" |
"\t-g <group>\t\t\tGroup for suID\n" |
"\t-p <priority (-20..20)>\t\tExecute with priority\n" |
"\t-p <priority (-20..20)>\t\tExecute with priority\n" |
"\t-d <directory>\t\t\tDirectory for suID\n" |
"\t-d <directory>\t\t\tDirectory for suID\n" |
|
"\t-C <directory>\t\t\tChroot to directory\n" |
|
"\t-c <cfgfile>\t\t\tConfig file\n" |
"\t-l <logfile>\t\t\tLog file path (default:/var/log/suX.log)\n" |
"\t-l <logfile>\t\t\tLog file path (default:/var/log/suX.log)\n" |
"\t-v\t\t\t\tVerbose, (more -v, more verbosity)\n" |
"\t-v\t\t\t\tVerbose, (more -v, more verbosity)\n" |
"\t-h\t\t\t\tThis help screen!\n\n", PACKAGE_NAME); |
"\t-h\t\t\t\tThis help screen!\n\n", PACKAGE_NAME); |
Line 280 main(int argc, char **argv)
|
Line 282 main(int argc, char **argv)
|
initProg(); |
initProg(); |
strlcpy(szCfg, DEFAULT_CONFIG, sizeof szCfg); |
strlcpy(szCfg, DEFAULT_CONFIG, sizeof szCfg); |
|
|
while ((ch = getopt(argc, argv, "hvc:u:g:p:d:l:")) != -1) | while ((ch = getopt(argc, argv, "hvC:c:u:g:p:d:l:")) != -1) |
switch (ch) { |
switch (ch) { |
case 'l': |
case 'l': |
f = fopen(optarg, "a"); |
f = fopen(optarg, "a"); |
Line 322 main(int argc, char **argv)
|
Line 324 main(int argc, char **argv)
|
break; |
break; |
case 'c': |
case 'c': |
strlcpy(szCfg, optarg, sizeof szCfg); |
strlcpy(szCfg, optarg, sizeof szCfg); |
|
break; |
|
case 'C': |
|
if (chroot(optarg) == -1) |
|
Err("Error:: chroot to dir"); |
break; |
break; |
case 'v': |
case 'v': |
Verbose++; |
Verbose++; |