CVSROOT: /cvs Module name: src Changes by: [email protected] 2026/04/02 01:42:16
Modified files:
usr.bin/ssh : scp.c
Log message:
when downloading files as root in legacy (-O) mode and without the
-p (preserve modes) flag set, clear setuid/setgid bits from
downloaded files as one might expect.
AFAIK this bug dates back to the original Berkeley rcp program.
Reported by Christos Papakonstantinou of Cantina and Spearbit.
