From 76dacff50330dcc55ad5c08bf8610e0d7e3ca2ec Mon Sep 17 00:00:00 2001 From: Peng Haitao Date: Fri, 17 May 2013 17:27:02 +0800 Subject: cifs.upcall: the exit code should be 0 when print version When print version number, the exit code should be 0 and syslog() should not send "Negating key" to the system logger. Signed-off-by: Peng Haitao --- cifs.upcall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cifs.upcall.c b/cifs.upcall.c index 12d5900..6c0b9de 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -857,6 +857,7 @@ int main(const int argc, char *const argv[]) legacy_uid++; break; case 'v': + rc = 0; printf("version: %s\n", VERSION); goto out; default: -- cgit v1.2.3