ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46718] New: Move task resets file owner when targeting different volume
Date Tue, 17 Feb 2009 03:45:21 GMT
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: notifications@ant.apache.org
        ReportedBy: ed@belisle.com


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.

Mime
View raw message