3 ms·
The chmod command can alter the flagset on the link not the target, if you select the right options. How do you guarantee the replacement symlink had the same
by ggm 7y ago
The chmod command can alter the flagset on the link not the target, if you select the right options.
How do you guarantee the replacement symlink had the same chmod flags and grp flags as the original? (chmod -h for reference*)
I don't think these commands are idempotent in the wide. They satisfy only the narrowest "yea, most normal-ish cases are sort of maybe ok" but since we lost atomicity, there are significant windows of time in the filesystem where inodes are in flux, and the new thing has a different inode to the old thing, if you delete and replace it. The disk is different.