Bug 895910
| Summary: | guestmount: rename() incorrectly follows symbolic links | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | bfan, dyasny, leiwang, mbooth, moli, qguan, walters, wshi | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 892834 | Environment: | |||||
| Last Closed: | 2013-01-21 17:00:47 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 892834 | ||||||
| Attachments: |
|
||||||
|
Description
Richard W.M. Jones
2013-01-16 09:19:42 UTC
Created attachment 684374 [details]
rename.sh
A self-contained script that demonstrates the bug.
Compare the output to the 'actual' and 'expected' cases above.
Running guestmount with the --trace option shows the following API calls are made (I omitted some non-essential calls): + mkdir adir libguestfs: trace: mkdir_mode "/adir" 509 libguestfs: trace: mkdir_mode = 0 + mkdir bdir libguestfs: trace: mkdir_mode "/bdir" 509 libguestfs: trace: mkdir_mode = 0 + ln -s adir current libguestfs: trace: ln_s "adir" "/current" libguestfs: trace: ln_s = 0 + ln -s bdir new libguestfs: trace: ln_s "bdir" "/new" libguestfs: trace: ln_s = 0 + mv -T -f new current libguestfs: trace: mv "/new" "/current" libguestfs: trace: mv = 0 |