This is the mail archive of the cygwin-developers@cygwin.com 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]

Re: Shell scripts [was Re: Avoiding /etc/passwd and /etc/group scans]


At 10:36 PM 10/22/2002 -0400, Christopher Faylor wrote:
>>Also, you have
>>     buf->st_mode |= STD_XBITS; 
>>so there will be x bits even when it isn't readable. 
>>That can be improved easily, for 1 or 2 or the script.
>
> The file is certainly readable if you've just figured out
>that it began with '#!' by reading the first two characters.

I meant, e.g. if it's rw-r----- make it rwxr-x---, 
not  rwxr-x--x.

Pierre


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