access(FULLPATH, xxx);

Gary Kline kline at
Sat Jan 14 00:05:19 UTC 2012

excuse this slip of memory, but do you need the full path PLUS  the
filename to use access? or just the filename?

say that i'm i n ~/tmp/foob and want to deetermine  wheether i can
access file foob.  do i need to use "access("home/kline/tmp/foob", F_OK)"
or will "access("foob", F_OK)"  do the trick?  i have already rub 
"chdir("~/tmp")" in main(). please note.


 Gary Kline  kline at  Public Service Unix
           Journey Toward the Dawn, E-Book:
          The 8.57a release of Jottings:
             Twenty-five years of service to the Unix community.

More information about the freebsd-questions mailing list