Add ENOTDIR as possible error to unveil(2)

2023-09-14 Thread Zack Newman
unveil(2) mentions the errors that errno will be set to upon failure; however it is missing ENOTDIR. Example C program that shows such an error under the assumption that /home/zack/foo is a file that exists: --- #include #include #incl

Re: msyscall.2: Use .Fn instead of .Nm in DESCRIPTION

2023-09-14 Thread Jason McIntyre
On Thu, Sep 14, 2023 at 12:00:03PM -0400, Josiah Frentsos wrote: > Index: msyscall.2 > === > RCS file: /cvs/src/lib/libc/sys/msyscall.2,v > retrieving revision 1.2 > diff -u -p -r1.2 msyscall.2 > --- msyscall.227 Nov 2019 20:53

msyscall.2: Use .Fn instead of .Nm in DESCRIPTION

2023-09-14 Thread Josiah Frentsos
Index: msyscall.2 === RCS file: /cvs/src/lib/libc/sys/msyscall.2,v retrieving revision 1.2 diff -u -p -r1.2 msyscall.2 --- msyscall.2 27 Nov 2019 20:53:05 - 1.2 +++ msyscall.2 14 Sep 2023 15:54:33 - @@ -41,7 +41,7 @@ If

Re: [feature] ssh-agent: new -A option (like -a) that overwrites existing sockets

2023-09-14 Thread Stuart Henderson
On 2023/09/14 11:55, Moritz Fain wrote: > > My initial reaction is that it's easy to run "rm -f" before starting > > the agent with the existing "-a" option. same. also if there's an existing agent running you probably don't want to blindly remove the socket - and as the manual says "The sockets

Make `logread_filtops' mpsafe

2023-09-14 Thread Vitaliy Makkoveev
`log_mtx' mutex(9) already used for message buffer protection, so use it to protect `logread_filtops' too. ok? Index: sys/kern/subr_log.c === RCS file: /cvs/src/sys/kern/subr_log.c,v retrieving revision 1.77 diff -u -p -r1.77 subr_lo

Re: [feature] ssh-agent: new -A option (like -a) that overwrites existing sockets

2023-09-14 Thread Moritz Fain
> My initial reaction is that it's easy to run "rm -f" before starting > the agent with the existing "-a" option. > > The code seems to use a new variable that should be called "A_flag" if > it's to follow the existing naming scheme. Of course, rm is always possible but if you're starting ssh-agent