[GOOD NEWS] pdksh already uses access()

Pierre A. Humblet Pierre.Humblet@ieee.org
Mon Mar 3 16:52:00 GMT 2003


Good news:

pdksh already uses access() instead of stat() for "if [ -r  file ]", etc...
That means no changes are needed to benefit from the new implementation
of access in 1.3.21

Pierre

/> ls -l test4
--wx-wx-wx+   1 PHumblet Clearuse        0 Mar  3 11:34 test4*
/> bash -c 'if [ -r test4 ]; then echo yes; else echo no; fi'
no                                                         <=WRONG
/> sh -c 'if [ -r test4 ]; then echo yes; else echo no; fi'
yes                                                        <=GOOD
/> ksh -c 'if [ -r test4 ]; then echo yes; else echo no; fi'
yes                                                        <=GOOD
/> getfacl test4
# file: test4
# owner: PHumblet
# group: Clearusers
user::-wx
group::-wx
group:Administrators:rwx
mask:rwx
other:-wx



More information about the Cygwin-apps mailing list