Clashes of filenames are the primary reason why directories exist; each user or each program doesn't have to worry about picking a globally unique filename because it can have its own directory isolated from the others. It's a pity this lesson, otherwise widely followed in the Unix design, was ignored when it came to picking a place for temporary files. Per-user temp directories would go further still to fixing these bugs. Yes, every single program can jump through hoops to pick a unique filename and retry if necessary; but why should it have to, when directories have already been invented?
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds