#884982 rsync: attempt to hack rsync failed - since unattended-update 2017-12-18

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
Juergen Pfennig
Date:
2026-05-19 08:37:01 UTC
Severity:
important
#884982#5
Date:
2017-12-22 11:59:09 UTC
From:
To:
Dear Maintainer,

I am using rsyncd via inetd. Worked fine before latest update for years.
Now I get:

attempt to hack rsync failed.
rsync error: protocol incompatibility (code 2) at receiver.c(586) [receiver=3.1.1]
rsync error: protocol incompatibility (code 2) at io.c(1633) [generator=3.1.1]

This always happens when sending to the server after a while of inactivity
(old start of rsyncd?). It does never happen when 1st receiving and then sending
within a short period. My inetd command is:

rsync  stream tcp nowait root  /usr/bin/rsync    rsync --daemon

The client command is (sorry for bad line-splitting):

rsync --archive --protect-args --out-format=%o %n%L --exclude=/backup/*** --exclude=.
   * --exclude=*~ --exclude=*.pyc --include=/archived/ --include=/archived/centauri/ --i
   nclude=/archived/centauri/alpha7 --include=/configs/ --include=/configs/jessie/ --inc
   lude=/configs/jessie/@admin/*** --include=/configs/jessie/centauri/*** --exclude=* --
   backup --backup-dir=backup/centauri --compress --fuzzy --hard-links --update --delete
   -after --dry-run /var/centauri/ root@alpha::@centauri

Thanks for your attention
Jürgen

#884982#10
Date:
2026-05-19 08:35:28 UTC
From:
To:
Hello Jürgen,

your ticket is quit old but allow me to answer it.

I never used rsync over inetd. Your report lacks of enough inform to
reproduce the problem and/or I lack of expertise and skills to do so.

I am assuming that rsync is not intended to be use this way (with inetd)
and/or inetd is not configured appropriate to act together with rsync.

Can you give us an update about the situation please?

Regards,
Christian