mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
b7f4f2023b
commit
90d4cbc285
@ -445,7 +445,9 @@ main(int argc, char **argv)
|
||||
configDir = strdup(AFSDIR_SERVER_ETC_DIRPATH);
|
||||
logFile = strdup(AFSDIR_SERVER_VOLSERLOG_FILEPATH);
|
||||
|
||||
ParseArgs(argc, argv);
|
||||
if (ParseArgs(argc, argv)) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (auditFileName) {
|
||||
osi_audit_file(auditFileName);
|
||||
|
Loading…
Reference in New Issue
Block a user