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

[GOOD NEWS] pdksh already uses access()


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


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