modified showVersion() to show current version instead of an hardcoded
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Sep 2003 20:46:51 +0000 (20:46 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Sep 2003 20:46:51 +0000 (20:46 +0000)
value

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@26 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/new-namespace.c
util-vserver/src/secure-mount.c

index 5684f1e..6e97fe4 100644 (file)
@@ -69,7 +69,8 @@ static void
 showVersion()
 {
   WRITE_MSG(1,
-           "new-namespace 0.1\n"
+           "new-namespace " VERSION " -- executes programs in a new namespace\n"
+           "This program is part of " PACKAGE_STRING "\n"
            "Copyright (C) 2003 Enrico Scholz\n"
            VERSION_COPYRIGHT_DISCLAIMER);
   exit(0);
index 194cc41..c61111e 100644 (file)
@@ -66,7 +66,8 @@ static void
 showVersion()
 {
   WRITE_MSG(1,
-           "secure-mount 0.23.5\n"
+           "secure-mount " VERSION " -- secure mounting of directories in chroots\n"
+           "This program is part of " PACKAGE_STRING "\n"
            "Copyright (C) 2003 Enrico Scholz\n"
            VERSION_COPYRIGHT_DISCLAIMER);
   exit(0);