Index: [thread] [date] [subject] [author]
  From: Garrett Mitchener <wgm2@acpub.duke.edu>
  To  : 
  Date: 28 Feb 1999 19:27:05 -0500

Re: Problems with S_ISLNK

"Philip K. Warren" <pkw@duke.edu> writes:

> I just wanted to report that while the function readlink correctly
> returns whether the file is a symbolic link, the macro S_ISLNK is
> returning 0 for every file I send it.  Can anyone offer an explanation
> for this?  If needed, I can attach some sample code.
> 
> -- Philip

Are you using stat or lstat?  One of them follows (decodes) links, the
other does not.

	-- Garrett :-)


Index: [thread] [date] [subject] [author]