]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 57967] Only set APPEND mode for regular files
authorPaul Smith <psmith@gnu.org>
Mon, 30 Mar 2020 18:38:47 +0000 (14:38 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 31 Mar 2020 04:19:20 +0000 (00:19 -0400)
commit80b90b7866a83a7ddec7b960cd2f9917ab2a2fc6
tree0ad9669145270459b12fdf69ea2517b74e932fec
parent8e024a253273a1e98b005d71c8ae4f6d2651fed4
[SV 57967] Only set APPEND mode for regular files

APPEND is a permanent mode shared by all users of a file.  If we
set it on a tty, pipe, etc. it will stay in effect even after make
exits, which can cause problems.

Patch provided by 0xef967c36@gmail.com

* src/output.c (set_append_mode): Check for a regular file.

Copyright-paperwork-exempt: yes
src/output.c