]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
vipw: stop printing non-sense version string
authorSami Kerola <kerolasa@iki.fi>
Sun, 13 Nov 2011 14:14:33 +0000 (15:14 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 23 Nov 2011 20:37:19 +0000 (21:37 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/vipw.c

index 99104d1eab162ec255ee4ca4762742852c8ef7b1..d46303ecfc46bb9060eaf70e9b37f586c9f06af4 100644 (file)
@@ -44,8 +44,6 @@
  * - fixed strerr(errno) in gettext calls
  */
 
-static char version_string[] = "vipw 1.4";
-
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
@@ -313,7 +311,7 @@ int main(int argc, char *argv[]) {
 
        if ((argc > 1) &&
            (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
-               printf("%s\n", version_string);
+               printf(UTIL_LINUX_VERSION);
                exit(EXIT_SUCCESS);
        }