]> git.ipfire.org Git - thirdparty/glibc.git/commit
iconv: iconv -o should not create executable files (bug 33164)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 17 Jul 2025 12:44:05 +0000 (14:44 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 17 Jul 2025 12:44:10 +0000 (14:44 +0200)
commitcdcf24ee14c27b77744ff52ab3ae852821207eb0
treea8e30af5008ca669e4f0fd5341f9a1f76f24daa3
parent0263528f8dd60cf58976e2d516b7c9edb16ae6f8
iconv: iconv -o should not create executable files (bug 33164)

The mistake is that open must use 0666 to pick up the umask,
and not 0777 (which is required by mkdir).

Fixes commit 8ef3cff9d1ceafe369f982d980678d749fb93bd2
("iconv: Support in-place conversions (bug 10460, bug 32033)").

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
iconv/iconv_prog.c
iconv/tst-iconv_prog-buffer.sh