|
@@ -244,7 +244,9 @@ Options:\n\
|
|
-g gid Change gid \n\
|
|
-g gid Change gid \n\
|
|
-P file Create a pid file\n\
|
|
-P file Create a pid file\n\
|
|
-G file Create a pgid file\n\
|
|
-G file Create a pgid file\n\
|
|
- -O nr Script optimization level (debugging option)\n"
|
|
|
|
|
|
+ -O nr Script optimization level (debugging option)\n\
|
|
|
|
+ -a mode Auto aliases mode: enable with yes or on,\n\
|
|
|
|
+ disable with no or off\n"
|
|
#ifdef STATS
|
|
#ifdef STATS
|
|
" -s file File to which statistics is dumped (disabled otherwise)\n"
|
|
" -s file File to which statistics is dumped (disabled otherwise)\n"
|
|
#endif
|
|
#endif
|
|
@@ -1665,7 +1667,7 @@ int main(int argc, char** argv)
|
|
"DBG_MSG_QA enabled, ser may exit abruptly\n");
|
|
"DBG_MSG_QA enabled, ser may exit abruptly\n");
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- options= ":f:cm:dVhEb:l:L:n:vrRDTN:W:w:t:u:g:P:G:SQ:O:"
|
|
|
|
|
|
+ options= ":f:cm:dVhEb:l:L:n:vrRDTN:W:w:t:u:g:P:G:SQ:O:a:"
|
|
#ifdef STATS
|
|
#ifdef STATS
|
|
"s:"
|
|
"s:"
|
|
#endif
|
|
#endif
|
|
@@ -1764,6 +1766,7 @@ int main(int argc, char** argv)
|
|
case 'G':
|
|
case 'G':
|
|
case 'S':
|
|
case 'S':
|
|
case 'Q':
|
|
case 'Q':
|
|
|
|
+ case 'a':
|
|
case 's':
|
|
case 's':
|
|
break;
|
|
break;
|
|
case '?':
|
|
case '?':
|
|
@@ -1977,6 +1980,18 @@ try_again:
|
|
case 'G':
|
|
case 'G':
|
|
pgid_file=optarg;
|
|
pgid_file=optarg;
|
|
break;
|
|
break;
|
|
|
|
+ case 'a':
|
|
|
|
+ if(strcmp(optarg, "on")==0 || strcmp(optarg, "yes")==0)
|
|
|
|
+ sr_auto_aliases = 1;
|
|
|
|
+ else if(strcmp(optarg, "off")==0 || strcmp(optarg, "no")==0)
|
|
|
|
+ sr_auto_aliases = 0;
|
|
|
|
+ else {
|
|
|
|
+ fprintf(stderr,
|
|
|
|
+ "bad auto aliases parameter: %s (valid on, off, yes, no)\n",
|
|
|
|
+ optarg);
|
|
|
|
+ goto error;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
case 's':
|
|
case 's':
|
|
#ifdef STATS
|
|
#ifdef STATS
|
|
stat_file=optarg;
|
|
stat_file=optarg;
|