Subject: sys/stat.h: S_IFLNK
To: None <tech-misc@netbsd.org>
From: Thorbjorn Jemander <thoan@ifm.liu.se>
List: tech-misc
Date: 01/09/2001 16:54:36
So, here's some really basic stuff.
Why do regular files trigger this test:
if (file_stat.st_mode & S_IFMT == S_IFLNK) {
/* Symbolic link */
}
?
With "regular" files I mean ordinay textfiles
and executables. Anyhow, I can't understand
why they would be reported as symlinks?
I must be missing something very obvious here,
but I can't see what it is.
/Thorbjörn