This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Perl creates html-file, view from cmd.exe => Access is denied


I use cygwin perl to create some html files from cygwin sh. When I then later from cmd.exe (or cygwin sh) try to open one of these files from the command line with

temp.html

I get the error "Access denied". This does not happen if I use the same trivial script from cmd.exe using ActiveState perl.

There seem to be some problems with the ACL list for the created file. It looks to me like a cygwin bug. Below are more details.

Kind regards,
Lennart

**********************
The perl script looks like this:

 use strict;
 open(OUT, ">temp.html") or die "Can't create temp.html: $!";
 print OUT qq[
   <html>
     <head>
       <title>temp html file</title>
     </head>
     <body>
       temp.html here!
     </body>
   </html>
 ];
 close(OUT);

The output from "cacls temp.html" is

D:\test\cygwin\temp.html W2ONE\Administrator:(special access:)
                                            STANDARD_RIGHTS_ALL
                                            DELETE
                                            READ_CONTROL
                                            WRITE_DAC
                                            WRITE_OWNER
                                            SYNCHRONIZE
                                            STANDARD_RIGHTS_REQUIRED
                                            FILE_GENERIC_READ
                                            FILE_GENERIC_WRITE
                                            FILE_READ_DATA
                                            FILE_WRITE_DATA
                                            FILE_APPEND_DATA
                                            FILE_READ_EA
                                            FILE_WRITE_EA
                                            FILE_READ_ATTRIBUTES
                                            FILE_WRITE_ATTRIBUTES

                        W2ONE\None:(special access:)
                                   READ_CONTROL
                                   SYNCHRONIZE
                                   FILE_GENERIC_READ
                                   FILE_READ_DATA
                                   FILE_READ_EA
                                   FILE_READ_ATTRIBUTES

                        Everyone:(special access:)
                                 READ_CONTROL
                                 SYNCHRONIZE
                                 FILE_GENERIC_READ
                                 FILE_READ_DATA
                                 FILE_READ_EA
                                 FILE_READ_ATTRIBUTES




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]