Clean up ftrustee, namspace and unxlog warning paths
This commit is contained in:
@@ -76,7 +76,7 @@ void write_utmp(int dologin, int connection, int pid,
|
||||
endutent();
|
||||
if (NULL == fn_wtmp) return;
|
||||
if ((fd = open(fn_wtmp, O_APPEND|O_WRONLY)) > -1) {
|
||||
write(fd, (char *)ut, sizeof(struct utmp));
|
||||
if (write(fd, (char *)ut, sizeof(struct utmp)) < 0) {}
|
||||
close(fd);
|
||||
}
|
||||
#endif /* !FREEBSD */
|
||||
|
||||
Reference in New Issue
Block a user