🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.hackers
Article #36

rsync-3.5 --specials behavior change vs. FreeBSD bindat(2)

#36
From: Steve Rikli
Date: Sat, 17 Oct 2026 18:45
51 lines
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
Technical Details
Message-ID: <atPCMAI7lK2-j2-X@dragon.home.genyosha.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Steve Rikli <sr@genyosha.net>
Newsgroups: muc.lists.freebsd.hackers
Subject: rsync-3.5 --specials behavior change vs. FreeBSD bindat(2)
Date: Sat, 17 Oct 2026 11:45:04 -0700
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-hackers@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <atPCMAI7lK2-j2-X@dragon.home.genyosha.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="29429"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792262720; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:list-id:list-help:list-owner:
	 list-unsubscribe:list-subscribe:list-post;
	bh=ooDsUOUdlgrMMtSXyxGg58o9z/P/D0iODYAZK3ZX17A=;
	b=yiaq5jECpT+Yp6K8KE9gMNX0n7Q65cD//iSrQC7gFA3mbILkK3wQPI7if555fFgM6NLJav
	ALaVmlEbY/b/nXYUcPQi8OeD9NKrxVJrUv5hLR+p+aMHfiRuS505IFsW2rskmdriff7xU0
	ImfQy2MBvY+5zKUvFezdbgH9xO3+qE+c8Uyp5m3nIgBGS8FwFbBVETC+HkhZvA4q2nHes3
	x8ak5rBkbbS/PyGZpnUlgcH4uPMPvm5+jYQ3Gx0zwb+JFd5/3V6T5pysT9owq8VrEP5vvw
	PZaqWRjpmCw4CCU83jqMiouXfrQOmVm/Wjx61N+Olnz8y8hZwO2AFK8mrN+YOA==
X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=genyosha.net header.s=mx1-20260602 header.b=QQOjF9p+;
	spf=pass (mx1.freebsd.org: domain of sr@genyosha.net designates 50.39.243.221 as permitted sender) smtp.mailfrom=sr@genyosha.net;
	dmarc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genyosha.net;
	s=mx1-20260602; t=1792262709;
	bh=CKpohEPw6JONnyIj1NhASAdVB7FwYvA9uvYYl7S2YR0=;
	h=Date:From:To:Subject;
	b=QQOjF9p+r0xenW3soYoE+cH+UhDGU/2BPPEzhcDkzSiZFz4s6maFLmX/t5Ma5BKQ7
	 YY0sAqC5LysxLbYeavjU4jwohw5Fa1X3wa5BO4M/Heg5jsnQVcpCdtU1I2QvjL5Z0q
	 hbIxcEaSttMM2IGT3+yALhqn+Is5ZrMmLNdvT162Ao41gp7SZBBZJS0z5eGOvjtDpn
	 +XaEONpstyRbmO8zI+0IUFzuTsEi3f4THjVuulTzHIszxnO16yzkHhWUXXx3hQC01S
	 xyzeJB1a9aePAOQ8V7owJ4fMk59ejliAtXpI7/TNgoIAhHp6QJF4xtTwKWptnwATZ+
	 m0s20JAiG3aFbnw9EnYBL8qgvK+KujQobpiTErL22xBRzSuiMpLbislALEeH7PC7L6
	 TjgZ6hN+GtNXixlzhp7LZ7Jd4CCQOSKD0PMzUX2HoN20pzwomELPsEuojdgdU3+MQ8
	 wRTJFbsmhl7sDGo9k6XWD+UkCjSu7askctBibpBJx2LzrvbY89VA+dxPdY1HHZGfVI
	 20IXcXxXbEE6VDCk5KHMCkJe7GYwaY+MP7HhKPf644kzEju59Em2VnyOsggQWDLB9n
	 CeoNutYST+63qBBY1NHCOC8gNJ9YMoqWwKzMEQVnwHEXeiiz79nfxS7m2pDXX8PHoh
	 n9DsDc61ncGISQoZTgfToW+s=
Precedence: list
Content-Disposition: inline
X-Greylist: inspected by milter-greylist-4.6.4 (ns1.genyosha.net [50.39.243.221]); Sat, 17 Oct 2026 11:45:09 -0700 (PDT) for IP:'50.39.243.219' DOMAIN:'ops0.genyosha.net' HELO:'dragon.home.genyosha.net' FROM:'sr@genyosha.net' RCPT:''
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns1.genyosha.net [50.39.243.221]); Sat, 17 Oct 2026 11:45:09 -0700 (PDT)
X-Spamd-Bar: /
X-Spamd-Result: default: False [-0.50 / 15.00];
	R_DKIM_ALLOW(-0.20)[genyosha.net:s=mx1-20260602];
	R_SPF_ALLOW(-0.20)[+mx];
	MIME_GOOD(-0.10)[text/plain];
	FROM_HAS_DN(0.00)[];
	DMARC_NA(0.00)[genyosha.net];
	RCPT_COUNT_ONE(0.00)[1];
	MISSING_XM_UA(0.00)[];
	ASN(0.00)[asn:20055, ipnet:50.39.128.0/17, country:US];
	MIME_TRACE(0.00)[0:+];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
	RCVD_COUNT_THREE(0.00)[3];
	TO_DN_NONE(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	ARC_NA(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
	DKIM_TRACE(0.00)[genyosha.net:+]
X-Rspamd-Queue-Id: 4j6W2j19jtz4jl0
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes