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 42511] New: - FixCrLf task changes file security settings on Windows Vista
Date Thu, 24 May 2007 14:38:15 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=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: stefan.wachter@gmx.de


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message