`System.Directory.getPermissions` fails on read-only filesystem
|Reported by:||hvr||Owned by:||AlainODea|
|Type of failure:||Incorrect result at runtime||Test Case:|
|Related Tickets:||Differential Revisions:|
Alain O'Dea reports in an email that:
Prelude> System.Directory.getPermissions "/usr/bin/ld" *** Exception: /usr/bin/ld: fileAccess: permission denied (Read-only file system)
That seems wrong.
An access(*, W_OK) syscall by design should return EROFS on a read-only file system by specification.
This breaks Cabal on SmartOS since /usr is read-only by design and Cabal calls getPermissions "/usr/bin/ld".
Change History (13)
comment:1 Changed 16 months ago by AlainODea
- Component changed from libraries/directory to libraries/unix
- difficulty changed from Unknown to Easy (less than 1 hour)
- Owner set to AlainODea
Changed 16 months ago by AlainODea
comment:6 Changed 15 months ago by thoughtpolice
- Milestone set to 7.8.1
- Version changed from 7.6.3 to 7.8.1-rc1
comment:7 Changed 15 months ago by thoughtpolice
- Resolution set to fixed
- Status changed from merge to closed