Date: Fri, 13 Jan 2012 16:05:18 -0800 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: access(FULLPATH, xxx); Message-ID: <20120114000513.GA17888@thought.org>
next in thread | raw e-mail | index | archive | help
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 -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120114000513.GA17888>