View | Details | Raw Unified | Return to bug 21769
Collapse All | Expand All

(-)vfs_syscalls.c.new Thu Oct 5 17:06:22 2000 (-1 / +2 lines)
Lines 423-429 Link Here
423
        * Only root, or the user that did the original mount is
423
        * Only root, or the user that did the original mount is
424
        * permitted to unmount this filesystem.
424
        * permitted to unmount this filesystem.
425
        */
425
        */
426
       if ((mp->mnt_stat.f_owner != p->p_ucred->cr_uid) &&
426
       if ((p->p_ucred->cr_uid && 
427
           (mp->mnt_stat.f_owner != p->p_ucred->cr_uid)) &&
427
           (error = suser(p))) {
428
           (error = suser(p))) {
428
               vput(vp);
429
               vput(vp);
429
               return (error);
430
               return (error);

Return to bug 21769