machine-id: fix missing initialization
This commit is contained in:
@@ -234,6 +234,17 @@ void close_many(const int fds[], unsigned n_fd) {
|
||||
close_nointr_nofail(fds[i]);
|
||||
}
|
||||
|
||||
int unlink_noerrno(const char *path) {
|
||||
PROTECT_ERRNO;
|
||||
int r;
|
||||
|
||||
r = unlink(path);
|
||||
if (r < 0)
|
||||
return -errno;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int parse_boolean(const char *v) {
|
||||
assert(v);
|
||||
|
||||
|
||||
@@ -646,3 +646,5 @@ static inline unsigned u64log2(uint64_t n) {
|
||||
static inline bool logind_running(void) {
|
||||
return access("/run/systemd/seats/", F_OK) >= 0;
|
||||
}
|
||||
|
||||
int unlink_noerrno(const char *path);
|
||||
|
||||
Reference in New Issue
Block a user