Better OSes allow one to write code like (the equivalent of) this:
fd = open(path, O_WRONLY | O_REPLACE);
which atomically replaces the file's data - keeping intact its metadata(perms, xattrs, selinux context, etc...)
Again, how disappointing...
Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds