occured during lseek(), read() or write().
+2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/failure.c: Try to close the open file if a failure
+ occured during lseek(), read() or write().
+
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/log.c: Check return values. If lseek() failed, avoid
SYSLOG ((LOG_WARN,
"Can't write faillog entry for UID %lu in %s.",
(unsigned long) uid, FAILLOG_FILE));
+ (void) close (fd);
}
}
SYSLOG ((LOG_WARN,
"Can't reset faillog entry for UID %lu in %s.",
(unsigned long) uid, FAILLOG_FILE));
+ (void) close (fd);
}
} else {
(void) close (fd);
SYSLOG ((LOG_WARN,
"Can't append failure of user %s to %s.",
ut_user, ftmp));
+ (void) close (fd);
}
}