Files
mcde/lib
lotherkandClaude Sonnet 5.5 bd41face71 McdeSys: an sftp user that starts with "-" no longer reaches sshfs as an option (t0081, tests)
ParseUrl refused a host that starts with "-" but not a user: the first argument
of sshfs is "USER@HOST:PATH", so sftp://-p22@host/ gave it "-p22@host:/", an
option.  Found by the table test this commit adds: mcde_sys_net_url_ok (the
tests' view of ParseUrl, private.h) with 22 addresses -- sftp/nfs/afp, IPv6
written bare, an empty user, a user or host that is an option, a space, ';',
'$(id)', a second '@', a newline in the path, no host, no scheme, a scheme of 16
characters, a host of 255 (kept) and 256 (refused) characters, NULL.
Red before the fix: exactly sftp://-l@host/ and sftp://-p22@host/ accepted;
green after: make check 5 of 5 (34 ok lines in test_netmount).

Not done of t0081: the checks of mcde_sys_wifi_join (netbsd.c:534ff, SSID 33
bytes, quotes, backslash, passphrase 8..63) -- they come after geteuid() != 0
and are NetBSD-only (the Linux branch checks the length only and must keep
quotes in a passphrase), so no test of the build can reach them without a
shared validator; catalogs and @PREFIX@ untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:58:27 +00:00
..