ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41525] New: - Unable to delete symlink when permissions incorrect on target
Date Fri, 02 Feb 2007 07:44:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41525

           Summary: Unable to delete symlink when permissions incorrect on
                    target
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: yvan.norsa@gmail.com


The symlink allows to create a link pointing to a directory which you can't
write to, which is normal.
But when you try to delete this link using the symlink task (action="delete"),
you get the following error :
java.io.IOException: Couldn't return resource /foo/symlink54528369.tmp to its
original name: /foo/target
 THE RESOURCE'S NAME ON DISK HAS BEEN CHANGED BY THIS ERROR!

Which makes sense, I guess. If I have understood how does the symlink task work,
it tries to break the link by renaming the target. Of course, as we don't have
the permission to rename the target here, it can't possibly work..

Workaround : use the exec task to remove the link

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message