Subject: bin/25156: umount fails on a trailing slash when uumounting /proc/
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <arjen-gnats@arj.localhost.nl>
List: netbsd-bugs
Date: 04/12/2004 17:48:08
>Number:         25156
>Category:       bin
>Synopsis:       umount fails on a trailing slash when uumounting /proc/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 12 17:49:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Arjen Zonneveld
>Release:        NetBSD 1.6
>Organization:
>Environment:
NetBSD bilbo 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
>Description:
umount /proc or umount /proc/ say "umount: /proc: not currently mounted" and fail to unmount the proc-filesystem if it was mounted with a trailing slash (only possible by calling mount_procfs yourself, mount -t procfs strips the slash). A program doing unmount("/proc/", 0) or unmount("/proc", 0) using unmount(2) works fine, so the kernel seems perfectly capable of handling the slash.

>How-To-Repeat:
mount_procfs /proc/ /proc/
umount /proc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: