[Issue 8 drafts 0001364]: use of noclobber with files in /tmp
The following issue has a resolution that has been APPLIED. == https://austingroupbugs.net/view.php?id=1364 == Reported By:geoffclare Assigned To: == Project:Issue 8 drafts Issue ID: 1364 Category: Shell and Utilities Type: Clarification Requested Severity: Comment Priority: normal Status: Applied Name: Geoff Clare Organization: The Open Group User Reference: Section:2.7.2 Redirecting Output Page Number:2287 Line Number:73909 Final Accepted Text:https://austingroupbugs.net/view.php?id=1364#c4991 Resolution: Accepted As Marked Fixed in Version: == Date Submitted: 2020-07-06 10:45 UTC Last Modified: 2020-09-30 14:20 UTC == Summary:use of noclobber with files in /tmp == Relationships ID Summary -- related to 0001016 race condition with set -C == Issue History Date ModifiedUsername FieldChange == 2020-07-06 10:45 geoffclare New Issue 2020-07-06 10:45 geoffclare Name => Geoff Clare 2020-07-06 10:45 geoffclare Organization => The Open Group 2020-07-06 10:45 geoffclare Section => 2.7.2 Redirecting Output 2020-07-06 10:45 geoffclare Page Number => 2287 2020-07-06 10:45 geoffclare Line Number => 73909 2020-07-06 10:46 geoffclare Relationship added related to 0001016 2020-09-14 15:35 rhansenNote Added: 0004991 2020-09-14 15:35 rhansenNote Edited: 0004991 2020-09-14 15:36 rhansenNote Edited: 0004991 2020-09-14 15:36 rhansenNote Edited: 0004991 2020-09-14 15:36 rhansenNote Edited: 0004991 2020-09-14 15:37 rhansenTag Attached: issue8 2020-09-14 15:37 rhansenFinal Accepted Text => https://austingroupbugs.net/view.php?id=1364#c4991 2020-09-14 15:37 rhansenStatus New => Resolved 2020-09-14 15:37 rhansenResolution Open => Accepted As Marked 2020-09-30 14:20 geoffclare Status Resolved => Applied ==
[Issue 8 drafts 0001364]: use of noclobber with files in /tmp
The following issue has been set as RELATED TO issue 0001016. == https://austingroupbugs.net/view.php?id=1364 == Reported By:geoffclare Assigned To: == Project:Issue 8 drafts Issue ID: 1364 Category: Shell and Utilities Type: Clarification Requested Severity: Comment Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section:2.7.2 Redirecting Output Page Number:2287 Line Number:73909 Final Accepted Text: == Date Submitted: 2020-07-06 10:45 UTC Last Modified: 2020-07-06 10:46 UTC == Summary:use of noclobber with files in /tmp == Relationships ID Summary -- related to 0001016 race condition with set -C == Issue History Date ModifiedUsername FieldChange == 2020-07-06 10:45 geoffclare New Issue 2020-07-06 10:45 geoffclare Name => Geoff Clare 2020-07-06 10:45 geoffclare Organization => The Open Group 2020-07-06 10:45 geoffclare Section => 2.7.2 Redirecting Output 2020-07-06 10:45 geoffclare Page Number => 2287 2020-07-06 10:45 geoffclare Line Number => 73909 2020-07-06 10:46 geoffclare Relationship added related to 0001016 ==
[Issue 8 drafts 0001364]: use of noclobber with files in /tmp
The following issue has been SUBMITTED. == https://austingroupbugs.net/view.php?id=1364 == Reported By:geoffclare Assigned To: == Project:Issue 8 drafts Issue ID: 1364 Category: Shell and Utilities Type: Clarification Requested Severity: Comment Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section:2.7.2 Redirecting Output Page Number:2287 Line Number:73909 Final Accepted Text: == Date Submitted: 2020-07-06 10:45 UTC Last Modified: 2020-07-06 10:45 UTC == Summary:use of noclobber with files in /tmp Description: Some time after bug https://austingroupbugs.net/view.php?id=1016 was approved as an interpretation, https://austingroupbugs.net/view.php?id=1016#c3655 was added in which McDutchie observed that the statement "Performing these operations atomically ensures that the creation of lock files and unique (often temporary) files is reliable" is not true if the file is in a public directory such as /tmp, since another user could create a FIFO or device file with the same name. Desired Action: On page 2287 line 73900 section 2.7.2, and page 3587 line 124071 section C.2.7.2, add to the "Notes to Reviewers":If option 2 is adopted in a future draft, note that the change from will need to be reapplied to the option 2 text. where is the URL for this bug. On page 2287 line 73909 section 2.7.2, change:Performing these operations atomically ensures that the creation of lock files and unique (often temporary) files is reliable.to:Performing these operations atomically ensures that the creation of lock files and unique (often temporary) files is reliable, provided the files are created in a private directory (i.e. not in /tmp or similar). On page 3588 line 124127 section C.2.7.2, change:The standard developers consider this to be of less importance than ensuring that the creation of lock files is reliable.to:The standard developers consider this to be of less importance than ensuring that the creation of lock files is reliable (in a private directory). Creation of lock files and unique (often temporary) files with noclobber set is only reliable provided the files are created in a private directory. If a directory such as /tmp is used where other users can create files, then another user could create a FIFO (or a device file, given sufficient privilege) with the same name, causing multiple redirections with noclobber set to open the existing non-regular file instead of one succeeding and the others failing. == Issue History Date ModifiedUsername FieldChange == 2020-07-06 10:45 geoffclare New Issue 2020-07-06 10:45 geoffclare Name => Geoff Clare 2020-07-06 10:45 geoffclare Organization => The Open Group 2020-07-06 10:45 geoffclare Section => 2.7.2 Redirecting Output 2020-07-06 10:45 geoffclare Page Number => 2287 2020-07-06 10:45 geoffclare Line Number => 73909 ==