7 ms·
In an interview with BSDNow[0], Bryan Cantrill had mentioned how at Sun, they'd discussed with the person in charge of POSIX compliance, and got a clearance to
by solarengineer 10y ago
In an interview with BSDNow[0], Bryan Cantrill had mentioned how at Sun, they'd discussed with the person in charge of POSIX compliance, and got a clearance to specifically check for this case and prevent it. This code is present in Illumos [1].
(Edit: added links correctly)
[0] http://www.bsdnow.tv/episodes/2015_11_23-the_cantrill_strikes_back http://www.bsdnow.tv/episodes/2015_11_23-the_cantrill_strike...
[1] https://github.com/illumos/illumos-gate/blob/5a4ef21a18dfdc65328821a265582d03e85a97c9/usr/src/cmd/rm/rm.c#L142 https://github.com/illumos/illumos-gate/blob/5a4ef21a18dfdc6...
- daurnimator 10y agoThat's in the 'rm' command; not in the syscall itself. You have the same thing in other OSes, hence --no-preserve-root
- solarengineer 10y agoIndeed. Thanks for clarifying this. I now realise that while one may have an rm that takes care of this, one could always get another rm that does not.