diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-20 01:03:35 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-02-20 01:03:35 +0100 |
commit | 3e495aea3c353e34f2fdf3d0a3a142a54aa7bb00 (patch) | |
tree | 9bd0ad85477693a45ea0a029162084829a2509fa /utils | |
parent | 19b07a60b699f905adc94d389eaa02c8e9b763ec (diff) | |
download | hurd-3e495aea3c353e34f2fdf3d0a3a142a54aa7bb00.tar.gz hurd-3e495aea3c353e34f2fdf3d0a3a142a54aa7bb00.tar.bz2 hurd-3e495aea3c353e34f2fdf3d0a3a142a54aa7bb00.zip |
mount: Avoid appending empty options to empty mntopts
argz_append does not actually support this.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mount.c b/utils/mount.c index 68fd6493..30e9bef3 100644 --- a/utils/mount.c +++ b/utils/mount.c @@ -277,7 +277,8 @@ do_mount (struct fs *fs, int remount) o = argz_next (mntopts, mntopts_len, o); } - ARGZ (append (&mntopts, &mntopts_len, options, options_len)); + if (options_len) + ARGZ (append (&mntopts, &mntopts_len, options, options_len)); } else { |