| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <43F25AF8.2010209@student.lu.se> |
| Date: | Tue, 14 Feb 2006 23:34:32 +0100 |
| From: | Lennart Borgman <lennart DOT borgman DOT 073 AT student DOT lu DOT se> |
| User-Agent: | Thunderbird 1.5 (Windows/20051201) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Perl creates html-file, view from cmd.exe => Access is denied |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |