Package: rsync
Version: 3.2.7-1
Severity: minor

Dear Maintainer,

   * What led up to the situation?

I was relyiong on the exit status rsync to indicate if there was a problem.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Something like:

   rsync -a otherhost:/nonexisting-path /tmp/.

or, for testing:
 
   rsync -a otherhost:/nonexisting-path

   * What was the outcome of this action?

Something like:

   rsync: [sender] link_stat "/nonexisting-path" failed: No such file or 
directory (2)

and an exit status of 0

   * What outcome did you expect instead?

I would expect a non-zero exit status when the complete tranasfer fails
like this (even when only some files could not be transferred I would
expect non-zero status). Something like 23 or 24, or maybe something
more generic, since the path given on the command line does not even exist
and the whole transfer failed.

Or, in other words, if something goes wrong with the tranasfer, I would
like rsync to not indicate success.

-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (100, 
'bookworm-fasttrack'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 6.1.0-28-amd64 (SMP w/28 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rsync depends on:
ii  init-system-helpers        1.65.2
ii  libacl1                    2.3.1-3
ii  libc6                      2.36-9+deb12u9
ii  liblz4-1                   1.9.4-1
ii  libpopt0                   1.19+dfsg-1
ii  libssl3                    3.0.15-1~deb12u1
ii  libxxhash0                 0.8.1-1
ii  libzstd1                   1.5.6+dfsg-1+b1
ii  lsb-base                   11.6
ii  sysvinit-utils [lsb-base]  3.06-4
ii  zlib1g                     1:1.2.13.dfsg-1

rsync recommends no packages.

Versions of packages rsync suggests:
ii  openssh-client       1:9.2p1-2+deb12u3
ii  openssh-server       1:9.2p1-2+deb12u3
ii  python3              3.11.2-1+b1
pn  python3-braceexpand  <none>

-- no debconf information

Reply via email to