diff options
Diffstat (limited to 'libdiskfs/opts-version.c')
-rw-r--r-- | libdiskfs/opts-version.c | 10 |
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); } |