Debian Bug report logs - #432594
fmirror is unable to mirror / directory

version graph

Package: fmirror; Maintainer for fmirror is (unknown);

Reported by: Martin Schulze <joey@infodrom.org>

Date: Tue, 10 Jul 2007 20:33:01 UTC

Severity: normal

Tags: patch

Found in version 0.8.4-13

Fixed in version fmirror/2:0.8.4-14

Done: Antonin Kral <A.Kral@sh.cvut.cz>

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, Antonin Kral <A.Kral@sh.cvut.cz>:
Bug#432594; Package fmirror. (full text, mbox, link).


Acknowledgement sent to Martin Schulze <joey@infodrom.org>:
New Bug report received and forwarded. Copy sent to Antonin Kral <A.Kral@sh.cvut.cz>. (full text, mbox, link).


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

From: Martin Schulze <joey@infodrom.org>
To: submit@bugs.debian.org
Subject: fmirror is unable to mirror / directory
Date: Tue, 10 Jul 2007 22:19:30 +0200
[Message part 1 (text/plain, inline)]
Package: fmirror
Version: 0.8.4-13
Tags: patch

The regular version of fmirror is unable to mirror the / (root)
directory of a remote host via FTP.  This is the common situation for
chroot+FTP environments that should be mirrored.

fmirror will fail with the following error message:

20:16:24 Operation failed: 550 No such directory.
20:16:24 Could not CWD to '..', aborting

The above problem is that with out -T given fmirror tries to execute
"CWD .." on the remote host which is not possible in the / directory.

When this is fixed, fmirror will try to mirror the remote directory to
the local / directory instead of the given local directory due to a
blatantly ignorant "%s/%s" format string.

The attached patch fixes this.

Regards,

	Joey

-- 
Never trust an operating system you don't have source for!

Please always Cc to me when replying to me on the lists.
[fmirror_0.8.4_rootdir.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#432594; Package fmirror. (full text, mbox, link).


Acknowledgement sent to Antonin Kral <A.Kral@sh.cvut.cz>:
Extra info received and forwarded to list. (full text, mbox, link).


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

From: Antonin Kral <A.Kral@sh.cvut.cz>
To: Martin Schulze <joey@infodrom.org>, 432594@bugs.debian.org
Subject: Re: Bug#432594: fmirror is unable to mirror / directory
Date: Wed, 11 Jul 2007 10:52:35 +0200
Hello Joey,

thank you. Could you send me the patch? Attachment, which I have
received has zero length.

regards,

    Antonin

* Martin Schulze <joey@infodrom.org> [2007-07-10 22:40] wrote:
> Package: fmirror
> Version: 0.8.4-13
> Tags: patch
> 
> The regular version of fmirror is unable to mirror the / (root)
> directory of a remote host via FTP.  This is the common situation for
> chroot+FTP environments that should be mirrored.
> 
> fmirror will fail with the following error message:
> 
> 20:16:24 Operation failed: 550 No such directory.
> 20:16:24 Could not CWD to '..', aborting
> 
> The above problem is that with out -T given fmirror tries to execute
> "CWD .." on the remote host which is not possible in the / directory.
> 
> When this is fixed, fmirror will try to mirror the remote directory to
> the local / directory instead of the given local directory due to a
> blatantly ignorant "%s/%s" format string.
> 
> The attached patch fixes this.
> 
> Regards,
> 
> 	Joey
> 
> -- 
> Never trust an operating system you don't have source for!
> 
> Please always Cc to me when replying to me on the lists.





Information forwarded to debian-bugs-dist@lists.debian.org, Antonin Kral <A.Kral@sh.cvut.cz>:
Bug#432594; Package fmirror. (full text, mbox, link).


Acknowledgement sent to Martin Schulze <joey@infodrom.org>:
Extra info received and forwarded to list. Copy sent to Antonin Kral <A.Kral@sh.cvut.cz>. (full text, mbox, link).


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

From: Martin Schulze <joey@infodrom.org>
To: Antonin Kral <A.Kral@sh.cvut.cz>
Cc: 432594@bugs.debian.org
Subject: Re: Bug#432594: fmirror is unable to mirror / directory
Date: Wed, 11 Jul 2007 12:10:57 +0200
[Message part 1 (text/plain, inline)]
Antonin Kral wrote:
> Hello Joey,
> 
> thank you. Could you send me the patch? Attachment, which I have
> received has zero length.

Hu?  Next try.

Regards,

	Joey

-- 
It's time to close the windows.

Please always Cc to me when replying to me on the lists.
[fmirror_0.8.4_rootdir.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#432594; Package fmirror. (full text, mbox, link).


Acknowledgement sent to Antonin Kral <A.Kral@sh.cvut.cz>:
Extra info received and forwarded to list. (full text, mbox, link).


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

From: Antonin Kral <A.Kral@sh.cvut.cz>
To: Martin Schulze <joey@infodrom.org>, 432594@bugs.debian.org
Subject: Re: Bug#432594: fmirror is unable to mirror / directory
Date: Wed, 11 Jul 2007 21:38:59 +0200
Hi Joey,

thanks for the patch. I am going to upload new version in couple of
seconds. I have just changed 

 LOG(0, failure, ("Could not CWD to '..', aborting"));  

to

 LOG(0, failure, ("Could not CWD to %s, aborting", gotodir));


Regards,

  Antonin


* Martin Schulze <joey@infodrom.org> [2007-07-11 12:25] wrote:
> Antonin Kral wrote:
> > Hello Joey,
> > 
> > thank you. Could you send me the patch? Attachment, which I have
> > received has zero length.
> 
> Hu?  Next try.
> 
> Regards,
> 
> 	Joey
> 



Reply sent to Antonin Kral <A.Kral@sh.cvut.cz>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Martin Schulze <joey@infodrom.org>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Antonin Kral <A.Kral@sh.cvut.cz>
To: 432594-close@bugs.debian.org
Subject: Bug#432594: fixed in fmirror 2:0.8.4-14
Date: Wed, 11 Jul 2007 20:47:08 +0000
Source: fmirror
Source-Version: 2:0.8.4-14

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

fmirror_0.8.4-14.diff.gz
  to pool/main/f/fmirror/fmirror_0.8.4-14.diff.gz
fmirror_0.8.4-14.dsc
  to pool/main/f/fmirror/fmirror_0.8.4-14.dsc
fmirror_0.8.4-14_i386.deb
  to pool/main/f/fmirror/fmirror_0.8.4-14_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 432594@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonin Kral <A.Kral@sh.cvut.cz> (supplier of updated fmirror 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: Wed, 11 Jul 2007 19:34:33 +0000
Source: fmirror
Binary: fmirror
Architecture: source i386
Version: 2:0.8.4-14
Distribution: unstable
Urgency: low
Maintainer: Antonin Kral <A.Kral@sh.cvut.cz>
Changed-By: Antonin Kral <A.Kral@sh.cvut.cz>
Description: 
 fmirror    - memory efficient ftp mirror program
Closes: 432594
Changes: 
 fmirror (2:0.8.4-14) unstable; urgency=low
 .
   * Added a special treatment for mirroring the / directory so that
     fmirror (a) is able to guess the time difference and (b) does not try
     to overwrite the local / directory instead of the specified local
     mirror directory.  [fmirror.c]
     Patch provided by Martin Schulze, Closes: #432594
   * Several cleanups, namely:
     debian-rules-sets-DH_COMPAT line 6
     debian-rules-ignores-make-clean-error line 34
     out-of-date-standards-version 3.6.2 (current is 3.7.2)
Files: 
 e1fc65185fd9b2830b8dcdfed449e905 564 net optional fmirror_0.8.4-14.dsc
 ad1fb36295beb38d969e86800388c334 10572 net optional fmirror_0.8.4-14.diff.gz
 56aae53bc6eb8f1f66bf3bf952d0741b 38614 net optional fmirror_0.8.4-14_i386.deb

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

iD8DBQFGlTRMluuhBRvyMFoRAvb/AKCJOmhKF0CDYCk3FTJMVZKqXEIPwACfWG2g
YjF1TW0p0QHdt6w0Y7iV9xE=
=a91U
-----END PGP SIGNATURE-----




Information forwarded to debian-bugs-dist@lists.debian.org, Antonin Kral <A.Kral@sh.cvut.cz>:
Bug#432594; Package fmirror. (full text, mbox, link).


Acknowledgement sent to Martin Schulze <joey@infodrom.org>:
Extra info received and forwarded to list. Copy sent to Antonin Kral <A.Kral@sh.cvut.cz>. (full text, mbox, link).


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

From: Martin Schulze <joey@infodrom.org>
To: Antonin Kral <A.Kral@sh.cvut.cz>
Cc: 432594@bugs.debian.org
Subject: Re: Bug#432594: fmirror is unable to mirror / directory
Date: Thu, 12 Jul 2007 09:29:48 +0200
Antonin Kral wrote:
> Hi Joey,
> 
> thanks for the patch. I am going to upload new version in couple of
> seconds. I have just changed 

Cool!

>  LOG(0, failure, ("Could not CWD to '..', aborting"));  
> 
> to
> 
>  LOG(0, failure, ("Could not CWD to %s, aborting", gotodir));

I guess I know where...

Thanks a lot!

Regards,

	Joey

-- 
The MS-DOS filesystem is nice for removable media.  -- H. Peter Anvin

Please always Cc to me when replying to me on the lists.



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 10 Aug 2007 07:29:51 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 Apr 15 08:19:07 2023; Machine Name: bembo

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.