[Bug locale/32033] iconv (the program) does not truncate output file if input is empty

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Thu Jul 17 12:44:50 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=32033

--- Comment #4 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cdcf24ee14c27b77744ff52ab3ae852821207eb0

commit cdcf24ee14c27b77744ff52ab3ae852821207eb0
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Jul 17 14:44:05 2025 +0200

    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>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list