From owner-freebsd-questions@FreeBSD.ORG Sat Jan 14 00:05:19 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F789106564A for ; Sat, 14 Jan 2012 00:05:19 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 137D18FC0C for ; Sat, 14 Jan 2012 00:05:18 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 3DA69E80925; Fri, 13 Jan 2012 16:05:18 -0800 (PST) Date: Fri, 13 Jan 2012 16:05:18 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20120114000513.GA17888@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 25 years of service to the Unix community. User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: access(FULLPATH, xxx); X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 00:05:19 -0000 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.