volserver: Exit on arg parsing failure

If ParseArgs returns an error, argument parsing failed. Currently we
keep going anyway, ignoring the error. Exit instead.

Change-Id: I2f9e4e06d6c3fab8e29921bdb0ea30d714c794b1
Reviewed-on: http://gerrit.openafs.org/10422
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Andrew Deason 2013-10-29 21:22:02 -05:00 committed by Derrick Brashear
parent b7f4f2023b
commit 90d4cbc285

View File

@ -445,7 +445,9 @@ main(int argc, char **argv)
configDir = strdup(AFSDIR_SERVER_ETC_DIRPATH); configDir = strdup(AFSDIR_SERVER_ETC_DIRPATH);
logFile = strdup(AFSDIR_SERVER_VOLSERLOG_FILEPATH); logFile = strdup(AFSDIR_SERVER_VOLSERLOG_FILEPATH);
ParseArgs(argc, argv); if (ParseArgs(argc, argv)) {
exit(1);
}
if (auditFileName) { if (auditFileName) {
osi_audit_file(auditFileName); osi_audit_file(auditFileName);