summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-25 18:02:37 +0000
committerMiles Bader <miles@gnu.org>1996-06-25 18:02:37 +0000
commita850cdd2b54a1aeda985ff60ac9c87024d5dce1e (patch)
tree5efe1b001a99df67361986282ebff3e52a786a8e
parentf99f473d18563d7167793f9391e73f9c6d802cc3 (diff)
(diskfs_get_options): Include `--compat=' in options.
-rw-r--r--ufs/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ufs/main.c b/ufs/main.c
index 1e7a87bc..e62834dc 100644
--- a/ufs/main.c
+++ b/ufs/main.c
@@ -136,8 +136,11 @@ diskfs_get_options (char **argz, unsigned *argz_len)
if (!err && compat_mode != COMPAT_GNU)
{
- char *mode = (compat_mode == COMPAT_BSD42) ? "4.2" : "4.4";
- err = argz_add (argz, argz_len, mode);
+ err =
+ argz_add (argz, argz_len,
+ ((compat_mode == COMPAT_BSD42)
+ ? "--compat=4.2"
+ : "--compat=4.4"));
if (err)
free (argz); /* Deallocate what diskfs returned. */
}