Thread View: muc.lists.freebsd.hackers
1 messages
1 total messages
Started by Steve Rikli
Sat, 17 Oct 2026 18:45
rsync-3.5 --specials behavior change vs. FreeBSD bindat(2)
Author: Steve Rikli
Date: Sat, 17 Oct 2026 18:45
Date: Sat, 17 Oct 2026 18:45
51 lines
6255 bytes
6255 bytes
The backup server here is FreeBSD 15.1-STABLE running rsync from pkgs in daemon mode. Clients/senders (mostly FreeBSD, some NetBSD, Linux) connect to the server/receiver with 'rsync -a' and other flags; the pertinent part is: --archive, -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H) -D same as --devices --specials This worked well with rsync-3.4.4_1 and previous versions, but a recent upgrade to rsync-3.5.1 resulted in warnings from --specials, e.g. skipping socket (creation unsupported here): "/sysdisk/var/run/log" which is indeed a socket, and does not get copied by rsync now: $ ls -la /var/run/log srw-rw-rw- 1 root wheel 0 Sep 9 01:11 /var/run/log I also noticed it for other files, e.g. $HOME/.ssh/agent/s.* sockets from recent OpenSSH_10.4p1 ssh-agent. Downgrading the server/receiver to rsync-3.4.4_1 for now restores previous behavior. rsync release notes describe this in "NEWS for rsync 3.5.0 (13 Aug 2026)" under "BEHAVIOR CHANGES": https://download.samba.org/pub/rsync/NEWS.html "On platforms without a race-safe way to create a unix socket in a subdirectory (the BSDs, macOS, Solaris, which lack bindat()), a nested socket transferred under --specials is skipped with a warning instead of failing the whole transfer. Top-level sockets are unaffected." However, it seems FreeBSD does have bindat(), per the bindat(2) man page. https://man.freebsd.org/cgi/man.cgi?query=bindat So I'm wondering: is rsync code using too broad a brush for "BSD" here? Or, maybe FreeBSD bindat() lacks capabilities which rsync-3.5 wants? Fwiw it's apparently possible to quiet the warning with --info=nonreg0, though that doesn't affect skipping; AFAI can tell there's no way to configure for pre-3.5 behavior, since it's platform-dependent in code. I may re-evaluate whether we truly need full "rsync -a" with --specials backups, but I'd at least like to understand the issue and whether there could be a future fix before giving up on it. Cheers, sr. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads