diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-02-02 18:37:30 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-02-02 18:37:30 +0000 |
| commit | dc9c6194b53a99863ce512a5ccf32006d4cf42f6 (patch) | |
| tree | e652f47028e51739b788087703efcb8dc45cd4d1 /sbin | |
| parent | 43a55a72efa975bb43cfc2b11343bd48551d2881 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/mount/mount.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index e96878653833..f944671c6276 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -524,7 +524,11 @@ prmount(sfp) (void)printf(", %s", o->o_name); flags &= ~o->o_opt; } - if (sfp->f_owner) { + /* + * Inform when file system is mounted by an unprivileged user + * or privileged non-root user. + */ + if ((flags & MNT_USER) != 0 || sfp->owner != 0) { (void)printf(", mounted by "); if ((pw = getpwuid(sfp->f_owner)) != NULL) (void)printf("%s", pw->pw_name); |
