delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/28/10:40:42

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
To: cygwin AT cygwin DOT com
From: "Krzysztof Duleba" <krzysan AT skrzynka DOT pl>
Subject: perlcc and permissions
Date: Sun, 28 Aug 2005 16:38:33 +0200
Lines: 43
Message-ID: <desi8j$un6$1@sea.gmane.org>
Mime-Version: 1.0
X-IsSubscribed: yes

Hi

There is a huge inconsistency in how perl and perlcc handle file
permissions. I am wondering what the reason is. How can it be that perl
can read a file and perlcc fails?

There is a file, foo.pl, owned by my group, but without proper
permissions.

$ ls -l foo.pl
-rwx------+ 1 Administratorzy Brak 34 Aug 28 16:29 foo.pl

I guess that in strict mode the file should not be readable by me.
However, cat and perl can read it without problems.

$ cat foo.pl
#!/usr/bin/perl
print "hello\n";

$ perl foo.pl
hello

perlcc is more strict about it:

$ perlcc foo.pl
/usr/bin/perlcc: Cannot read input file foo.pl:

When I change the permissions:

$ chmod g+r foo.pl

$ ls -l foo.pl
-rwxr-----+ 1 Administratorzy Brak 34 Aug 28 16:29 foo.pl

$ perlcc foo.pl
pccBUVxU.c: In function `perl_init_aaaa':
pccBUVxU.c:1603: warning: this decimal constant is unsigned only in ISO
C90
Info: resolving _PL_ppaddr by linking to __imp__PL_ppaddr (auto-import)


Krzysztof Duleba



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019