Skip to contentSkip to conversation

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

PATCH In review Peng Haitao 2 participants 2 messages May 17, 2013 – May 23, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs.upcall.c: 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.

---
 cifs.upcall.c | 1 +
 1 file changed, 1 insertion(+)
cifs.upcall.c +1 -0
index 12d5900..6c0b9de 100644
@@ -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:
Signature · 1 line
1.8.1.4

A message that is not in the archive (sent off-list or not yet received): 1368782822-15039-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org

#2 lore raw
Quoted 13 lines · On Fri, 17 May 2013 17:27:02 +0800 Peng Haitao…

When print version number, the exit code should be 0 and syslog() should not send "Negating key" to the system logger.

---
 cifs.upcall.c | 1 +
 1 file changed, 1 insertion(+)
cifs.upcall.c +0 -0
index 12d5900..6c0b9de 100644

cifs.upcall.c int main(const int argc, char *const argv[]) · line 863

Quoted 7 lines
cifs.upcall.c +1 -0
@@ -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:

Merged...

Signature · 1 line
Jeff Layton <[email protected]>