public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Martin Panter <vadmium+floss@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Removing trailing slash breaks SSHFS
Date: Mon, 26 Mar 2012 10:18:21 +0200	[thread overview]
Message-ID: <20120326081821.GI2040@x2.net.home> (raw)
In-Reply-To: <CA+eR4cHKY8uVHbARbsJpUQ_gHgMm7qpU_0Dt-E0pmZ16PND8nA@mail.gmail.com>

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

      reply	other threads:[~2012-03-26  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-24  9:09 Removing trailing slash breaks SSHFS Martin Panter
2012-03-26  8:18 ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120326081821.GI2040@x2.net.home \
    --to=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    --cc=vadmium+floss@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox