summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Haitao <penght@cn.fujitsu.com>2013-05-17 17:27:02 +0800
committerJeff Layton <jlayton@samba.org>2013-05-23 06:38:49 -0400
commit76dacff50330dcc55ad5c08bf8610e0d7e3ca2ec (patch)
treea9a070326c8315c67257ed3bc4b70cefaf096b2e
parent21b5bdcb354bc113473347af5e4995fae2285b58 (diff)
downloadcifs-utils-76dacff50330dcc55ad5c08bf8610e0d7e3ca2ec.tar.gz
cifs-utils-76dacff50330dcc55ad5c08bf8610e0d7e3ca2ec.tar.bz2
cifs-utils-76dacff50330dcc55ad5c08bf8610e0d7e3ca2ec.zip
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 <penght@cn.fujitsu.com>
-rw-r--r--cifs.upcall.c1
1 files changed, 1 insertions, 0 deletions
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: