You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
python -m gzip writes through a symlink at the output name and ignores the input mode #161088
python -m gzip derives the output name from the input name and opens it with "wb", so an existing symlink at that name is followed and its target is overwritten. It also creates the output with the default mode, so a private input file yields a world-readable output. gzip(1) (with -f) unlinks the old name, creates the output exclusively, and gives it the input's permission bits.
Activity
gh-161088: Make the gzip CLI replace its output file like gzip(1) (GH…