Subject: bin/3265: Unmountable union mount if uniondir is given as a sym link
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gwing@primenet.com.au>
List: netbsd-bugs
Date: 02/28/1997 04:49:00
>Number: 3265
>Category: bin
>Synopsis: Unmountable union mount if uniondir is given as a sym link
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 27 21:05:02 1997
>Last-Modified:
>Originator: Geoff Wing
>Organization:
Geoff Wing [mason@primenet.com.au] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
>Release: NetBSD 1.2 [ABC]
>Environment:
System: NetBSD coral.primenet.com.au 1.2B NetBSD 1.2B (CORAL) #8: Fri Jan 31 17:11:02 EST 1997 root@coral.primenet.com.au:/src/netbsd/src/sys/arch/i386/compile/CORAL i386
>Description:
% mount_union somedir somesymlink
% umount somesymlink
umount: somesymlink: not currently mounted
There is no way to unmount it (that I know, except by hacking umount).
umount uses realpath() to determine if something's mounted.
union_mount doesn't.
>How-To-Repeat:
As above
>Fix:
Choice of:
union_mount to use realpath()
or:
umount to check directory if realpath(directory) fails
>Audit-Trail:
>Unformatted: