Re: [PATCH] setup.c: remove needless argument passed to open in sanitize_stdfds

2018-11-25 Thread Junio C Hamano
pedrodel...@gmail.com writes: > According to POSIX manual pages, the open() system call's mode > argument specifies the file mode bits to be applied when a new > file is created. If neither O_CREAT nor O_TMPFILE is specified, > then mode is ignored. Correct. While I would say two argument

[PATCH] setup.c: remove needless argument passed to open in sanitize_stdfds

2018-11-25 Thread pedrodelyra
From: Pedro de Lyra Signed-off-by: Pedro de Lyra --- According to POSIX manual pages, the open() system call's mode argument specifies the file mode bits to be applied when a new file is created. If neither O_CREAT nor O_TMPFILE is specified, then mode is ignored. So I guess that 0 argument