Skip to contentSkip to conversation

fdisk: standarize version output

PATCH Applied Davidlohr Bueso 2 participants 2 messages Apr 16, 2012 – Apr 23, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 fdisk: standarize version output

From: Davidlohr Bueso <[email protected]>

---
 fdisk/fdisk.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fdisk/fdisk.c +2 -2
index 0ccabb7..0954028 100644
@@ -2960,8 +2960,8 @@ main(int argc, char **argv) {
 			break;
 		case 'V':
 		case 'v':
-			printf("fdisk (%s)\n", PACKAGE_STRING);
-			exit(0);
+			printf(UTIL_LINUX_VERSION);
+			return EXIT_SUCCESS;
 		default:
 			usage(stderr);
 		}
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso

fdisk/fdisk.c | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com