Directory.renameFile fails on symlinks
renameFile fails on symbolic links when I believe it
shouldn't. The problem is that it uses
withFileStatus which uses stat(2) instead of
lstat(2). As a result it fails when trying to
rename a link which points nowhere and (presumably
-- I haven't tested this) or a link to a directory.
BTW, I was surprised to not find a "standard library"
bug category.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 5.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |