Op 29-03-17 om 18:30 schreef shwares...@aol.com: > I agree something along these lines should be added. As worded now the > assumption looks to be more the system is a single user one, or > sandboxed to that effect, not a multi-user server.
Yes. > It doesn't even have to be a different user; a separate process that > happens to use the same tmpnam() template for a FIFO creation might > cause a race condition. This is true, but I figured a user who has nefarious processes running under their own account has bigger problems to worry about than -o noclobber. > On some systems stdin and stdout may be implemented as FIFOs, so a > shell could be expected to access them along with regular files in > redirects. I'd have it be process private directories, not simply > user private, How does one go about making these in POSIX? > therefore, or that non-regular files like FIFOs are required to be > atomically unlinked before attempting the regular file creation. I think "atomically" and "before ..." are mutually exclusive. - M.