bug#70558: ln -sfr stats the wrong file

2024-04-24 Thread David Leonard
When analyzing file accesses with strace, I noticed that ln stats an unrelated file. This only happens with the opions -sfr and when the dest symlink already exists. Here's a reproduction script: # setup mkdir -p a b > b/x ln -fs anything a/x # ln -sfr b/x a/x strace -

bug#70561: ln -sfr stats the wrong file

2024-04-24 Thread David Leonard
(resend) When analyzing file accesses with strace, I noticed that ln stats an unrelated file. This only happens with the opions -sfr and when the dest symlink already exists. Here's a reproduction script: # setup mkdir -p a b > b/x ln -fs anything a/x # ln -sfr b/x a/x