Up to [local] / src / usr.bin / rsync
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_7_0
Revision 1.2.2.1 / (download) - annotate - [select for diffs], Wed Nov 10 09:00:59 2021 UTC (2 years, 6 months ago) by bluhm
Branch: OPENBSD_7_0
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
Copy the new file copy.c from -current to -stable. This was forgotten in the previous -stable commit. This is patches/7.0/common/004_rpki.patch.sig
Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:17 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
Branch point for: OPENBSD_7_0,
OPENBSD_6_9
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)
For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert