Clean up ftrustee, namspace and unxlog warning paths

This commit is contained in:
Mario Fetka
2026-04-20 23:39:42 +02:00
parent e8d7eb88b6
commit 176a54367b
3 changed files with 17 additions and 17 deletions

View File

@@ -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 */