From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 29 21:40:30 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4599B16A420 for ; Fri, 29 Jul 2005 21:40:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F133E43D46 for ; Fri, 29 Jul 2005 21:40:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6TLeT3m069790 for ; Fri, 29 Jul 2005 21:40:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6TLeT1x069787; Fri, 29 Jul 2005 21:40:29 GMT (envelope-from gnats) Date: Fri, 29 Jul 2005 21:40:29 GMT Message-Id: <200507292140.j6TLeT1x069787@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Mikolaj Rydzewski Cc: Subject: Re: bin/84298: [patch] allow mount(8) to recognize relative pathnames as mountpoints X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mikolaj Rydzewski List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 21:40:30 -0000 The following reply was made to PR bin/84298; it has been noted by GNATS. From: Mikolaj Rydzewski To: Brooks Davis 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//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 PGP KeyID: 8b12ab02