pipe-logging-fix-20050610
[openafs.git] / src / bozo / bosserver.c
index 15f3343..90a8bca 100644 (file)
@@ -865,13 +865,13 @@ main(int argc, char **argv, char **envp)
 
 #ifndef AFS_NT40_ENV
     if (!nofork)
-       daemon(0, 0);
+       daemon(1, 0);
 #endif /* ! AFS_NT40_ENV */
 
     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);