public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* Removing trailing slash breaks SSHFS
@ 2012-03-24  9:09 Martin Panter
  2012-03-26  8:18 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Panter @ 2012-03-24  9:09 UTC (permalink / raw)
  To: util-linux

Hi

I am using the util-linux version 2.21 on Arch Linux:

https://www.archlinux.org/packages/core/x86_64/util-linux

They have patched the 2.21-6 package to include the following commit
“lib/canonicalize: always remove tailing slash”:

https://git.kernel.org/?p=utils/util-linux/util-linux.git;a=commitdiff;h=28074a0

The result of this is that my SSHFS entry in my “fstab” file no longer
works properly. To demonstrate, this “mount” command

sudo mount -t fuse 'sshfs#marty@thee:/' /media/thee

strips the trailing slash and calls

/sbin/mount.fuse sshfs#marty@thee: /media/thee -o rw

which mounts the home directory rather than the entire remote file
system. A workaround seems to be to specify a double slash (e.g.
“thee://”), but it doesn’t seem healthy and I was wondering if either
this recent slash-removal could be avoided in the “mount” command, or
if my magic SSHFS usage was abusing how “mount” is meant to work.

-Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Removing trailing slash breaks SSHFS
  2012-03-24  9:09 Removing trailing slash breaks SSHFS Martin Panter
@ 2012-03-26  8:18 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-03-26  8:18 UTC (permalink / raw)
  To: Martin Panter; +Cc: util-linux

On Sat, Mar 24, 2012 at 09:09:30AM +0000, Martin Panter wrote:
> Hi
> 
> I am using the util-linux version 2.21 on Arch Linux:
> 
> https://www.archlinux.org/packages/core/x86_64/util-linux
> 
> They have patched the 2.21-6 package to include the following commit
> “lib/canonicalize: always remove tailing slash”:
> 
> https://git.kernel.org/?p=utils/util-linux/util-linux.git;a=commitdiff;h=28074a0
> 
> The result of this is that my SSHFS entry in my “fstab” file no longer
> works properly. To demonstrate, this “mount” command
> 
> sudo mount -t fuse 'sshfs#marty@thee:/' /media/thee

 use 'mount -t fuse.sshfs / /media/thee' the 'sshfs#' notation is
 deprecated.

> strips the trailing slash and calls
> 
> /sbin/mount.fuse sshfs#marty@thee: /media/thee -o rw

I've reverted the patch -- the function canonicalize_path() is too
generic for such behavior.

Thanks for your bug report.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-26  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-24  9:09 Removing trailing slash breaks SSHFS Martin Panter
2012-03-26  8:18 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox