fstat calls should be lstat
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
fstat calls should be lstat
bang in the wrong place
if ((!DoSyslog)
#ifndef AFS_NT40_ENV
- && (!(fstat(AFSDIR_BOZLOG_FILE, &sb) == 0) &&
- (S_ISFIFO(sb.st_mode)))
+ && ((lstat(AFSDIR_BOZLOG_FILE, &sb) == 0) &&
+ !(S_ISFIFO(sb.st_mode)))
#endif
) {
strcpy(namebuf, AFSDIR_BOZLOG_FILE);
}
/* Support named pipes as logs by not rotating them */
- if ((fstat(fileName, &statbuf) == 0) && (S_ISFIFO(statbuf.st_mode))) {
+ if ((lstat(fileName, &statbuf) == 0) && (S_ISFIFO(statbuf.st_mode))) {
isfifo = 1;
}
#endif
}
/* Support named pipes as logs by not rotating them */
- if ((fstat(fileName, &statbuf) == 0) && (S_ISFIFO(statbuf.st_mode))) {
+ if ((lstat(fileName, &statbuf) == 0) && (S_ISFIFO(statbuf.st_mode))) {
isfifo = 1;
}
#endif