Date: Thu, 24 Aug 2000 08:59:32 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: lauras AT softhome DOT net Message-Id: <2593-Thu24Aug2000085932+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b CC: djgpp-workers AT delorie DOT com In-reply-to: <39A43717.9EF83306@softhome.net> (message from Laurynas Biveinis on Wed, 23 Aug 2000 22:41:59 +0200) Subject: Re: Symlinks are done! References: <39A2E301 DOT 29AD624C AT softhome DOT net> <2110-Wed23Aug2000142755+0300-eliz AT is DOT elta DOT co DOT il> <39A3D5DF DOT F9F3B78F AT softhome DOT net> <1438-Wed23Aug2000173005+0300-eliz AT is DOT elta DOT co DOT il> <39A43717 DOT 9EF83306 AT softhome DOT net> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Wed, 23 Aug 2000 22:41:59 +0200 > From: Laurynas Biveinis > > What's worse, does the same apply to readlink()? If yes, > I'm in trouble No, I think you are off the hook here. "man readlink" on indy.delorie.com says this: readlink fails and the buffer remains unchanged if: EACCES Search permission is denied for a component of the path prefix of path. .... EINVAL The named file is not a symbolic link. So it looks like the argument to readlink *must* be a symlink. You *do* resolve the symlinks in all the leading directories inside `readlink', do you?