In this situation gunzip -k linked.gz results in
gzip: linked.gz: Too many levels of symbolic links

Which is, I think an actual bug since gzip has been asked to not delete
the gz file and so shouldn't care that it's a symlink.

The reason is it uses O_NOFOLLOW:

openat(AT_FDCWD, "linked.gz", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW) = -1 
ELOOP (Too many levels of symbolic links)

-f does also make gzip do the right thing in this case, but should not be 
necessary,
and has other side effects (overwriting) that may not be desirable.

(Also there's nothing in the description of -f that says it is needed in this 
case.)

-- 
see shy jo

Attachment: signature.asc
Description: PGP signature

Reply via email to