Re: [minor] umask 400 causes here-{doc,string} failure

2018-10-28 Thread Chet Ramey
On 10/28/18 6:05 PM, Martijn Dekker wrote: > Unless I'm missing something, there should be no reason for an internal > temp file to have any permissions other than 0600 (user readable/writable), > so it seems to me that an fchmod call straight after creating the file and > before returning the fd

Re: [minor] umask 400 causes here-{doc,string} failure

2018-10-28 Thread Martijn Dekker
Op 11-03-18 om 17:31 schreef Ilkka Virta: On 11.3. 17:17, Stephane Chazelas wrote: $ bash -c 'umask 400; cat <<< test' bash: cannot create temp file for here-document: Permission denied Those shells use temporary files to store the content of the here-documents as the Bourne shell initially d