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

Pierre A. Humblet Pierre.Humblet@ieee.org
Tue Oct 22 19:53:00 GMT 2002


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



More information about the Cygwin-developers mailing list