[Bug 1965076] Re: rsync --update incorrectly reports file "is newer" than itself
Ian! D. Allen
1965076 at bugs.launchpad.net
Tue Oct 11 14:15:52 UTC 2022
** Description changed:
rsync 3.2.3 has a broken "--update" option. See the examples below.
The "--update" option incorrectly makes rsync say a file is newer than itself.
Remove the "--update" option, and rsync correctly says the file is "uptodate".
The right output should of course be "is uptodate" in all cases.
This bug also shows up between machines if the source rsync is 3.1.3 and the destination is 3.2.3.
The bug does not show up if the source rsync is 3.2.3 and the destination is 3.1.3.
+
+ $ touch foo
+ $ rsync --update --info=skip foo foo
+ foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
+
+ Obviously a file should not be listed as newer than itself. Another
+ way:
$ touch foo
$ rsync -avv --update foo .
delta-transmission disabled for local transfer or --whole-file
foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 38 bytes received 96 bytes 268.00 bytes/sec
total size is 0 speedup is 0.00
$ rsync -avv foo .
delta-transmission disabled for local transfer or --whole-file
foo is uptodate <=== THIS IS CORRECT
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 41 bytes received 106 bytes 294.00 bytes/sec
total size is 0 speedup is 0.00
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: rsync 3.2.3-4ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 15 22:47:44 2022
InstallationDate: Installed on 2022-03-16 (0 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: rsync
UpgradeStatus: No upgrade log present (probably fresh install)
** Description changed:
rsync 3.2.3 has a broken "--update" option. See the examples below.
The "--update" option incorrectly makes rsync say a file is newer than itself.
Remove the "--update" option, and rsync correctly says the file is "uptodate".
The right output should of course be "is uptodate" in all cases.
This bug also shows up between machines if the source rsync is 3.1.3 and the destination is 3.2.3.
The bug does not show up if the source rsync is 3.2.3 and the destination is 3.1.3.
+ The bug was fixed upstream in June 2020: https://github.com/WayneD/rsync/issues/98
$ touch foo
$ rsync --update --info=skip foo foo
foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
Obviously a file should not be listed as newer than itself. Another
way:
$ touch foo
$ rsync -avv --update foo .
delta-transmission disabled for local transfer or --whole-file
foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 38 bytes received 96 bytes 268.00 bytes/sec
total size is 0 speedup is 0.00
$ rsync -avv foo .
delta-transmission disabled for local transfer or --whole-file
foo is uptodate <=== THIS IS CORRECT
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 41 bytes received 106 bytes 294.00 bytes/sec
total size is 0 speedup is 0.00
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: rsync 3.2.3-4ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 15 22:47:44 2022
InstallationDate: Installed on 2022-03-16 (0 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: rsync
UpgradeStatus: No upgrade log present (probably fresh install)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rsync in Ubuntu.
https://bugs.launchpad.net/bugs/1965076
Title:
rsync --update incorrectly reports file "is newer" than itself
Status in rsync:
Unknown
Status in rsync package in Ubuntu:
Confirmed
Bug description:
rsync 3.2.3 has a broken "--update" option. See the examples below.
The "--update" option incorrectly makes rsync say a file is newer than itself.
Remove the "--update" option, and rsync correctly says the file is "uptodate".
The right output should of course be "is uptodate" in all cases.
This bug also shows up between machines if the source rsync is 3.1.3 and the destination is 3.2.3.
The bug does not show up if the source rsync is 3.2.3 and the destination is 3.1.3.
The bug was fixed upstream in June 2020: https://github.com/WayneD/rsync/issues/98
$ touch foo
$ rsync --update --info=skip foo foo
foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
Obviously a file should not be listed as newer than itself. Another
way:
$ touch foo
$ rsync -avv --update foo .
delta-transmission disabled for local transfer or --whole-file
foo is newer <=== THIS IS NOT CORRECT - A file can't be newer than itself.
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 38 bytes received 96 bytes 268.00 bytes/sec
total size is 0 speedup is 0.00
$ rsync -avv foo .
delta-transmission disabled for local transfer or --whole-file
foo is uptodate <=== THIS IS CORRECT
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 41 bytes received 106 bytes 294.00 bytes/sec
total size is 0 speedup is 0.00
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: rsync 3.2.3-4ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 15 22:47:44 2022
InstallationDate: Installed on 2022-03-16 (0 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: rsync
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/rsync/+bug/1965076/+subscriptions
More information about the foundations-bugs
mailing list