proposed bsdlabel patch

Hartmut Brandt harti at freebsd.org
Tue Mar 30 00:17:13 PST 2004


Marcel Moolenaar wrote:
> On Mon, Mar 29, 2004 at 11:42:12PM -0800, Luigi Rizzo wrote:
> 
>>actually, following up to myself:
>>
>>you do need some way to disambiguate between the case of a device
>>("bsdlabel ad0") and a file in the current directory ("bdslabel
>>ad0").
> 
> 
> The file takes precedence, because any filename that does not contain
> any directory elements is assumed to live in the current directory. The
> shorthand for device special files is secundairy to that, because it's
> a convenience only. If the device special file is meant, it has to be
> specified as /dev/ad0 in the example given.
> 

That makes it very easy to trash a file in the current directory.

harti



More information about the freebsd-current mailing list