diff options
| author | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-03-03 02:46:15 +0000 |
|---|---|---|
| committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-03-03 02:46:15 +0000 |
| commit | 3ae7ea683425f565f95b604a0558e703ab670854 (patch) | |
| tree | 9118b12807fa1c3258ab522f060268a6de76c08b /sbin/mount | |
| parent | b4130b8ae0e4486a1923364da500dfac5eee8610 (diff) | |
Notes
Diffstat (limited to 'sbin/mount')
| -rw-r--r-- | sbin/mount/mount.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 655ef48cc118..eb0814ef1f60 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -754,8 +754,13 @@ putfsent(ent) char *opts; opts = flags2opts(ent->f_flags); + + /* + * "rw" is not a real mount option; this is why we print NULL as "rw" + * if opts is still NULL here. + */ printf("%s\t%s\t%s %s", ent->f_mntfromname, ent->f_mntonname, - ent->f_fstypename, opts); + ent->f_fstypename, opts ? opts : "rw"); free(opts); if ((fst = getfsspec(ent->f_mntfromname))) |
