[PATCH] Fix blkid return code when display the version

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

 



Signed-off-by: Alexey Gladkov <gladkov.alexey@xxxxxxxxx>
---
 misc-utils/blkid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
index a472d06..ec385b7 100644
--- a/misc-utils/blkid.c
+++ b/misc-utils/blkid.c
@@ -762,6 +762,7 @@ int main(int argc, char **argv)
 		case 'V':
 		case 'v':
 			print_version(stdout);
+			err = 0;
 			goto exit;
 		case 'w':
 			/* ignore - backward compatibility */
-- 
2.10.2

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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux