https://issues.apache.org/bugzilla/show_bug.cgi?id=46718
Summary: Move task resets file owner when targeting different
volume
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
Moving a file to a differet volume resets owner.group to current user.
Example:
1) Run as root
2) Current directory is on a different volume then /tmp.
3) Ant task (movefail.xml attached, bash pseudo code shown):
a) touch /tmp/movefile_from
b) chown ed /tmp/movefile_from
c) mv /tmp/movefile_from ./movefile_to
4) owner of movefile_to is now root.
Notes:
1) Move task attempts to rename file, but ends up copying file instead.
2) OS (rhel5) is able to move file to new volume and preserve owner
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.