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=42511>.
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=42511

           Summary: FixCrLf task changes file security settings on Windows
                    Vista
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


I am using Ant inside an installer that runs with administrator privileges on
Windows Vista. The files that are copied into the C:\Programm Files\<myapp>
folder have their security set such that all users can read and execute these 
files.

The FixCrLf task creates temporary files in the temporary directory of the
current user. Files that are created there can not be read and executed by all
users. Only the current user has "full control".

When the FixCrLf task renames its temporary files in order to replace the
original ones the security settings of the temporary files are kept.

In my example the files under C:\Programm Files\<myapp> that were processed by
the FixCrLf task are no longer readable by all users!

Proposed fix: The temporary file that is used by the FixCrLf task to process a
source file must be created in the directory the original file stays in. By this
means the temporary file gets the same security settings as the source file.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to