[PATCH] cifs.upcall.c: the exit code should be 0 when print version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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:
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux