The trouble with symbolic links
The trouble with symbolic links
Posted Jul 8, 2022 13:05 UTC (Fri) by Sesse (subscriber, #53779)In reply to: The trouble with symbolic links by ilammy
Parent article: The trouble with symbolic links
I find this example pretty contrived, but OK: stat() the file and check its inode number. (There's no new TOCTTOU, since editors typically don't keep the file descriptors open anyway.)