You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/07/07 01:22:23 UTC

[Bug 56700] New: Delete task should not follow symlinks by default

https://issues.apache.org/bugzilla/show_bug.cgi?id=56700

            Bug ID: 56700
           Summary: Delete task should not follow symlinks by default
           Product: Ant
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: trejkaz@trypticon.org

Our builds always clean the build dir like this:

    <delete dir="build" />

However, I just deleted a couple of my applications, thanks to having a symlink
to /Applications and Ant's default behaviour being to follow the symlinks.

I now know that I have to do this to get safe behaviour (added in Bug 22632):

    <delete quiet="true" removeNotFollowedSymlinks="true">
        <fileset dir="build" followsymlinks="false"/>
    </delete>

I know that having the less useful defaults for tasks is something like an Ant
culture, but in this particular case, the potential for damage is quite high,
so I think that the default behaviour should be the safe behaviour.

-- 
You are receiving this mail because:
You are the assignee for the bug.