Skip Menu | will be shut down on March 1st, 2021.

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

Owner: Nobody in particular
Requestors: ppisar [...]

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

Subject: Race in setModeFromFile()
Download (untitled) / with headers
text/plain 317b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to