lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <115cbcc0-1e18-f45a-d043-237508e89a08@dragonfly.plus.com>
Date:   Fri, 9 Jun 2017 13:58:32 +0100
From:   Marc Thomas <marc@...gonfly.plus.com>
To:     linux-ext4@...r.kernel.org
Subject: [PATCH] e4defrag: Add a version number

Add the e2fsprogs version number to e4defrag.
Display the version number prior to the usage message.

Signed-off-by: Marc Thomas <marc@...gonfly.plus.com>
---
 misc/e4defrag.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc/e4defrag.c b/misc/e4defrag.c
index 1d1b4f41..86056fdd 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -40,6 +40,7 @@
 #include <sys/stat.h>
 #include <sys/statfs.h>
 #include <sys/vfs.h>
+#include "../version.h"
  /* A relatively new ioctl interface ... */
 #ifndef EXT4_IOC_MOVE_EXT
@@ -2026,6 +2027,7 @@ int main(int argc, char *argv[])
 	exit(1);
  out:
+	printf("e4defrag %s (%s)\n", E2FSPROGS_VERSION, E2FSPROGS_DATE);
 	printf(MSG_USAGE);
 	exit(1);
 }
-- 
2.13.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ