summaryrefslogtreecommitdiff
path: root/libdiskfs/opts-version.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-08-12 20:34:14 +0000
committerMiles Bader <miles@gnu.org>1996-08-12 20:34:14 +0000
commitfc95cdfe3fd373d08ea9febc79afcb08123f7688 (patch)
tree5e9fded4da3df59db3fbdfbd1c3641a4e79abdb9 /libdiskfs/opts-version.c
parent9474c6318ad2effa3e80246d1012cb111e726bf0 (diff)
(_print_version): Print the edit version too if it's non-zero.
Diffstat (limited to 'libdiskfs/opts-version.c')
-rw-r--r--libdiskfs/opts-version.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libdiskfs/opts-version.c b/libdiskfs/opts-version.c
index 0e9d4098..06d1e0be 100644
--- a/libdiskfs/opts-version.c
+++ b/libdiskfs/opts-version.c
@@ -31,8 +31,14 @@ _print_version (FILE *stream, struct argp_state *state)
fprintf (stream, "%s\n", argp_program_version);
else
/* Construct a version using the standard diskfs variables. */
- fprintf (stream, "%s %d.%d (GNU %s)\n",
- diskfs_server_name, diskfs_major_version, diskfs_minor_version,
+ if (diskfs_edit_version)
+ fprintf (stream, "%s %d.%d%c (GNU %s)\n",
+ diskfs_server_name, diskfs_major_version, diskfs_minor_version,
+ diskfs_edit_version + 'a', HURD_RELEASE);
+ else
+ /* Construct a version using the standard diskfs variables. */
+ fprintf (stream, "%s %d.%d (GNU %s)\n",
+ diskfs_server_name, diskfs_major_version, diskfs_minor_version,
HURD_RELEASE);
}