Skip Menu |

This queue is for tickets about the File-Permissions-Unix CPAN distribution.

Report information
The Basics
Id: 104370
Status: resolved
Priority: 0/
Queue: File-Permissions-Unix

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.0.0
Fixed in: (no value)



Subject: Race in setModeFromFile()
The setModeFromFile() first checks if source file exists and then stats the file and finally it uses the obtained mode. If the file is removed between the check and stat(), bad things will happen. I recommend completely remove the check for file existence and check if the stat() succeeded (returned non-empty list).
Bump to 0.1.0 to fix this. This also depreciates error 3. This also affects the method chmod.