Re:Show HN: AtomicWrite: cross platform library for atomical...
by scottlamb on Tuesday March 13, 2018 @01:58PM
(#16578178)
> It's really unfortunate the posix link() system call takes a pair of paths. It should really take an inode.
You can do something like this on Linux for open file descriptors via linkat(..., AT_EMPTY_PATH). However, you need the CAP_DAC_READ_SEARCH capability, which limits its usefulness.
You can do something like this on Linux for open file descriptors via linkat(..., AT_EMPTY_PATH). However, you need the CAP_DAC_READ_SEARCH capability, which limits its usefulness.