Debian Bug report logs - #318078
mv fails to overwrite existing files

version graph

Package: sshfs; Maintainer for sshfs is Bartosz Fenski <fenio@debian.org>; Source for sshfs is src:sshfs-fuse (PTS, buildd, popcon).

Reported by: "Alexey Feldgendler" <alexey@feldgendler.ru>

Date: Wed, 13 Jul 2005 10:33:02 UTC

Severity: important

Tags: upstream

Found in versions 1.1-1, sshfs/1.2-1, sshfs-fuse/1.7-2

Fixed in version sshfs-fuse/2.0-1

Done: Bartosz Fenski <fenio@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bartosz Fenski <fenio@debian.org>:
Bug#318078; Package sshfs. (full text, mbox, link).


Acknowledgement sent to Eduard Bloch <blade@debian.org>:
New Bug report received and forwarded. Copy sent to Bartosz Fenski <fenio@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Eduard Bloch <blade@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mv fails to overwrite existing files
Date: Wed, 13 Jul 2005 12:20:43 +0200
Package: sshfs
Version: 1.1-1
Severity: important
Tags: upstream

The subject says it all. Do:

touch x
touch y
mv -f x y

and you will get "Permission denied".

Regards,
Eduard.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc2
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages sshfs depends on:
ii  fuse-utils                  2.3.0-1      Filesystem in USErspace (utilities
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libfuse2                    2.3.0-1      Filesystem in USErspace library
ii  libglib2.0-0                2.6.5-1      The GLib library of C routines

sshfs recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Bartosz Fenski <fenio@debian.org>:
Bug#318078; Package sshfs. (full text, mbox, link).


Acknowledgement sent to Daniel Jacobowitz <dan@debian.org>:
Extra info received and forwarded to list. Copy sent to Bartosz Fenski <fenio@debian.org>. (full text, mbox, link).


Message #10 received at 318078@bugs.debian.org (full text, mbox, reply):

From: Daniel Jacobowitz <dan@debian.org>
To: Debian Bug Tracking System <318078@bugs.debian.org>
Subject: sshfs: More information about rename()
Date: Thu, 06 Oct 2005 10:42:52 -0400
Package: sshfs
Version: 1.2-1
Followup-For: Bug #318078

I did some research into this today.

OpenSSH implements the SFTP protocol draft standard, version 3.  This
version requires rename to fail if the destination file exists, and so
OpenSSH does its best to implement that by using link().

There's a protocol version 4, which makes heavy use of Unicode, et cetera. 
One of the changes was to the rename operation; it now takes flags, one of
which says the rename is allowed to overwrite.  This lets you request the
server perform an atomic rename() call.  However, OpenSSH doesn't implement
this protocol version.  I haven't seen any obvious objections to doing so,
just that it's a lot of work and nobody's done it.

In the mean time, it would be simple to make sshfs perform non-atomic
renames.  That's a little sketchy, so probably it shouldn't be done by
default.  But it would be nice to have an option to unlink the destination
file and try again if rename failed.

Without this there's lots of things I can't run on sshfs.  The most annoying
is cvs update.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc6
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages sshfs depends on:
ii  fuse-utils                    2.3.0-4    Filesystem in USErspace (utilities
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libfuse2                      2.3.0-4    Filesystem in USErspace library
ii  libglib2.0-0                  2.8.1-1    The GLib library of C routines

sshfs recommends no packages.

-- no debconf information



Reply sent to Bartosz Fenski <fenio@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Eduard Bloch <blade@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at 318078-close@bugs.debian.org (full text, mbox, reply):

From: Bartosz Fenski <fenio@debian.org>
To: 318078-close@bugs.debian.org
Subject: Bug#318078: fixed in sshfs-fuse 1.6-1
Date: Wed, 22 Mar 2006 08:17:19 -0800
Source: sshfs-fuse
Source-Version: 1.6-1

We believe that the bug you reported is fixed in the latest version of
sshfs-fuse, which is due to be installed in the Debian FTP archive:

sshfs-fuse_1.6-1.diff.gz
  to pool/main/s/sshfs-fuse/sshfs-fuse_1.6-1.diff.gz
sshfs-fuse_1.6-1.dsc
  to pool/main/s/sshfs-fuse/sshfs-fuse_1.6-1.dsc
sshfs-fuse_1.6.orig.tar.gz
  to pool/main/s/sshfs-fuse/sshfs-fuse_1.6.orig.tar.gz
sshfs_1.6-1_i386.deb
  to pool/main/s/sshfs-fuse/sshfs_1.6-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 318078@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bartosz Fenski <fenio@debian.org> (supplier of updated sshfs-fuse package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri,  3 Feb 2006 14:10:51 +0100
Source: sshfs-fuse
Binary: sshfs
Architecture: source i386
Version: 1.6-1
Distribution: unstable
Urgency: low
Maintainer: Bartosz Fenski <fenio@debian.org>
Changed-By: Bartosz Fenski <fenio@debian.org>
Description: 
 sshfs      - filesystem client based on SSH File Transfer Protocol
Closes: 318078 323496 334513 338496 341490 353968
Changes: 
 sshfs-fuse (1.6-1) unstable; urgency=low
 .
   * New upstream release.
     - fixes problem with saving files from GNOME apps. (Closes: #338496)
     - adds workaround for overwriting files. (Closes: #318078, #353968)
   * Does not suggests module that does not exist. (Closes: #334513)
     - added README.Debian file with explanation how to get such module.
   * README file now explains usage correctly. (Closes: #341490)
   * Fixes typo in manual page. (Closes: #323496)
Files: 
 e7a1e43f61fc551333a673b7df87601e 620 utils optional sshfs-fuse_1.6-1.dsc
 04fa75c1357bea362537efe15805e7da 98049 utils optional sshfs-fuse_1.6.orig.tar.gz
 fb5c0bc896ab3613a6d61d45257b5a6d 25633 utils optional sshfs-fuse_1.6-1.diff.gz
 e304a1ddbe3f7deb54a5246469779c5e 31306 utils optional sshfs_1.6-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEIXDbhQui3hP+/EARAlirAKDD32MuugU92+MyUK8taverfhFDiACdGecG
1NPQRNG0A1OKzcjzLE6yF2o=
=G1w+
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Bartosz Fenski <fenio@debian.org>:
Bug#318078; Package sshfs. (full text, mbox, link).


Acknowledgement sent to "Alexey Feldgendler" <alexey@feldgendler.ru>:
Extra info received and forwarded to list. Copy sent to Bartosz Fenski <fenio@debian.org>. (full text, mbox, link).


Message #20 received at 318078@bugs.debian.org (full text, mbox, reply):

From: "Alexey Feldgendler" <alexey@feldgendler.ru>
To: 318078@bugs.debian.org
Subject: reopen
Date: Tue, 20 Mar 2007 10:59:51 +0100
The bug still occurs in version 1.7-2 of the package:

$ touch x y
$ mv -f x y
mv: cannot move `x' to `y': Operation not permitted


-- 
Alexey Feldgendler <alexey@feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com



Bug reopened, originator set to "Alexey Feldgendler" <alexey@feldgendler.ru>. Request was from "Alexey Feldgendler" <alexey@feldgendler.ru> to control@bugs.debian.org. (Tue, 20 Mar 2007 10:09:02 GMT) (full text, mbox, link).


Bug marked as found in version 1.7-2. Request was from "Alexey Feldgendler" <alexey@feldgendler.ru> to control@bugs.debian.org. (Tue, 20 Mar 2007 10:27:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bartosz Fenski <fenio@debian.org>:
Bug#318078; Package sshfs. (full text, mbox, link).


Acknowledgement sent to Miklos Szeredi <miklos@szeredi.hu>:
Extra info received and forwarded to list. Copy sent to Bartosz Fenski <fenio@debian.org>. (full text, mbox, link).


Message #29 received at 318078@bugs.debian.org (full text, mbox, reply):

From: Miklos Szeredi <miklos@szeredi.hu>
To: alexey@feldgendler.ru, 318078@bugs.debian.org
Subject: Re: Bug#318078: reopen
Date: Wed, 21 Mar 2007 14:54:54 +0100
> The bug still occurs in version 1.7-2 of the package:
> 
> $ touch x y
> $ mv -f x y
> mv: cannot move `x' to `y': Operation not permitted

This is a FAQ dammit!

   mv fails with "Operation not permitted".
   
   Use -o workaround=rename (requires sshfs version >= 1.3).

Miklos



Reply sent to Bartosz Fenski <fenio@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to "Alexey Feldgendler" <alexey@feldgendler.ru>:
Bug acknowledged by developer. (full text, mbox, link).


Message #34 received at 318078-close@bugs.debian.org (full text, mbox, reply):

From: Bartosz Fenski <fenio@debian.org>
To: 318078-close@bugs.debian.org
Subject: Bug#318078: fixed in sshfs-fuse 2.0-1
Date: Thu, 24 Apr 2008 14:17:03 +0000
Source: sshfs-fuse
Source-Version: 2.0-1

We believe that the bug you reported is fixed in the latest version of
sshfs-fuse, which is due to be installed in the Debian FTP archive:

sshfs-fuse_2.0-1.diff.gz
  to pool/main/s/sshfs-fuse/sshfs-fuse_2.0-1.diff.gz
sshfs-fuse_2.0-1.dsc
  to pool/main/s/sshfs-fuse/sshfs-fuse_2.0-1.dsc
sshfs-fuse_2.0.orig.tar.gz
  to pool/main/s/sshfs-fuse/sshfs-fuse_2.0.orig.tar.gz
sshfs_2.0-1_i386.deb
  to pool/main/s/sshfs-fuse/sshfs_2.0-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 318078@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bartosz Fenski <fenio@debian.org> (supplier of updated sshfs-fuse package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 24 Apr 2008 10:27:47 +0200
Source: sshfs-fuse
Binary: sshfs
Architecture: source i386
Version: 2.0-1
Distribution: unstable
Urgency: low
Maintainer: Bartosz Fenski <fenio@debian.org>
Changed-By: Bartosz Fenski <fenio@debian.org>
Description: 
 sshfs      - filesystem client based on SSH File Transfer Protocol
Closes: 318078 375521 430225 438041 464138 465916 467613 469197 470800 474151
Changes: 
 sshfs-fuse (2.0-1) unstable; urgency=low
 .
   * New upstream version.
     - really allows to use other sshd options. (Closes: #430225)
     - supports showing correct disk free information,
       needs OpenSSH >= 5.1 (Closes: #375521, #464138)
     - supports atomic renames, needs OpenSSH >= 4.9. (Closes: #318078, #467613)
   * Bump needed fuse version. (Closes: #474151, #469197)
   * Added README.Debian with description of fuse group and other requirenments
     that have to be met to be able to use some functions. (Closes: #465916)
   * Removed debian/sshfs.1 since it's now included upstream.
   * Patched manpage contains information about unmounting. (Closes: #470800)
   * Doesn't strip binaries. (Closes: #438041)
Checksums-Sha1: 
 6fbcb1dc743e0ea874885b2b81e3209c335fd0d8 1050 sshfs-fuse_2.0-1.dsc
 690f30effbe8ce181c7546b16645848b4fd07521 114200 sshfs-fuse_2.0.orig.tar.gz
 54fde41c5f329e09e659b5abce0354f6d81b66c5 26831 sshfs-fuse_2.0-1.diff.gz
 7766b404a90e25f2a18837ef616f3194dfbcff88 39548 sshfs_2.0-1_i386.deb
Checksums-Sha256: 
 f1f29d48bbf1250a0714937a786f17d19dd48b6d986cd81e99b84f9fa0c2c689 1050 sshfs-fuse_2.0-1.dsc
 7351f972fc1e599ce68e61cc05a8fdc2befc9da0ba18402004783d45355b00f5 114200 sshfs-fuse_2.0.orig.tar.gz
 4aaeb9b03381a15188d0801ffc4ffe3e4dd1b5d464f666e327eb1d205499ba67 26831 sshfs-fuse_2.0-1.diff.gz
 a925ca4d9ced2b4dd6e55d24ade75b9c857768a7d6013fcb790e350f3c7e85f1 39548 sshfs_2.0-1_i386.deb
Files: 
 00bbdcc1339175234120385f3c979498 1050 utils optional sshfs-fuse_2.0-1.dsc
 62ec074ba31e6275f43366b900a0cdc0 114200 utils optional sshfs-fuse_2.0.orig.tar.gz
 6ec2731e8c50c4db79e978f50c24bb92 26831 utils optional sshfs-fuse_2.0-1.diff.gz
 0cb1f1e27dc610188935dcdc2675ca9a 39548 utils optional sshfs_2.0-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIEJV7hQui3hP+/EARAkVVAJ4mVYioBXGt9q+RSSICIgV49a69rwCcCLXB
z7Kd3x0jUw5eXNIKip8nNkI=
=ae2t
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 24 May 2008 07:39:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 13 10:47:21 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.