From 90d4cbc285071bd5c9b6f9d5096879bc6bb43da1 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 29 Oct 2013 21:22:02 -0500 Subject: [PATCH] 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 Tested-by: BuildBot --- src/volser/volmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/volser/volmain.c b/src/volser/volmain.c index 367a8a8003..3b7dfc614b 100644 --- a/src/volser/volmain.c +++ b/src/volser/volmain.c @@ -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);