Package: rsync
Version: 2.6.6-1
Severity: wishlist
Like all good programs, 'rsync' has error messages; here are
some from a run of the script 'apt-rsync':
% rsync -ztb --progress
rsync://ftp.debian.org/debian/dists/../project/experimental/non-free/binary-i386/Packages
/var/lib/apt/lists/ftp.debian.org_debian_dists_.._project_experimental_non-free_binary-i386_Packages
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)
% rsync -ztb --progress
rsync://debian.teleglobe.net/non-US/dists/unstable/non-US/main/binary-i386/Packages
/var/lib/apt/lists/debian.teleglobe.net_non-US_dists_unstable_non-US_main_binary-i386_Packages
@ERROR: Unknown module 'non-US'
rsync error: error starting client-server protocol (code 5) at main.c(1171)
...assuming those errors are correct, what I don't understand is the
purpose of showing ordinary users references to C code like:
at io.c(434)
at main.c(1171)
Worse, at first glance, it makes a naive user wonder if 'rsync' has some
unexpected new bug -- that is, as if something IN the code might have
caused the protocol error the message warns of.
The "code 12" and "code 5" bits also seem gratuitous. Isn't that
what shell exit codes are for?
% rsync -ztb --progress
rsync://ftp.debian.org/debian/dists/../project/experimental/non-free/binary-i386/Packages
/var/lib/apt/lists/ftp.debian.org_debian_dists_.._project_experimental_non-free_binary-i386_Packages
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)
% echo $? # print the last program's (rsync) exit code
12 # same info
If the exit codes and C references are not useful when not debugging it
might be better if they were only displayed given a special command line
switch, such as "-vv".
Hope this helps...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages rsync depends on:
ii libc6 2.3.5-7 GNU C Library: Shared libraries an
ii libpopt0 1.7-5 lib for parsing cmdline parameters
rsync recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]