Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2005 21:40:29 GMT
From:      Mikolaj Rydzewski <miki@ma.krakow.pl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/84298: [patch] allow mount(8) to recognize relative pathnames as mountpoints
Message-ID:  <200507292140.j6TLeT1x069787@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/84298; it has been noted by GNATS.

From: Mikolaj Rydzewski <miki@ma.krakow.pl>
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/84298: [patch] allow mount(8) to recognize relative pathnames
 as mountpoints
Date: Fri, 29 Jul 2005 23:36:33 +0200 (CEST)

 On Fri, 29 Jul 2005, Brooks Davis wrote:
 
 >> 	Current version of mount(8) requires to specify absolute mountpoint
 >> 	pathname. Let's assume one has some mountpoints located in /mnt:
 >> 	/mnt/cdrom, /mnt/floppy, /mnt/usb
 >> 	It should be possible to call mount(8) like this:
 >> 	mount cdrom (assuming the current directory is /mnt). It has
 >> 	more practical impact when system is configured to allow non-root
 >> 	users to mount (cdroms, usb sticks) to mountpoints in their home
 >> 	directories. It's much more flexible to run mount ~/usb than
 >> 	mount /home/<username>/usb.
 >
 > Not really an objection, but this last example is bogus.  As the example
 > below shows, tcsh, bash, sh, and csh all make this work since ~expansion
 > happens before the command is run by the shell:
 
 Yes, you're right, thanks for pointing this.
 
 But the problem with mount ignoring relative mountpoint pathnames still 
 exists.
 
 Regards
 
 -- 
 Mikolaj Rydzewski    <miki@ma.krakow.pl>    PGP KeyID: 8b12ab02



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507292140.j6TLeT1x069787>