List Info

Thread: DO NOT REPLY New: - FixCrLf task changes file security settings on Windows Vista




DO NOT REPLY New: - FixCrLf task changes file security settings on Windows Vista
country flaguser name
United States
2007-05-24 09:38:15
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=42
511>.
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: devant.apache.org
        ReportedBy: stefan.wachtergmx.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=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


DO NOT REPLY - FixCrLf task changes file security settings on Windows Vista
country flaguser name
United States
2007-05-24 10:11:26
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=42
511>.
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





------- Additional Comments From stevelapache.org  2007-05-24 08:11 -------
A few workarounds.
1. use setACL: ht
tp://setacl.sourceforge.net/html/doc-basics.html
2. after the fixcrlf, use <copy> to make a copy of the
file in the target dir.
that will ensure that no move takes place
3. fixcrlf at build time, and copy out the fixed file on
windows systems

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

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )