diff options
Diffstat (limited to 'src/shared/machine-id-setup.c')
-rw-r--r-- | src/shared/machine-id-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/machine-id-setup.c b/src/shared/machine-id-setup.c index 7263b6a204..d6aa667ada 100644 --- a/src/shared/machine-id-setup.c +++ b/src/shared/machine-id-setup.c @@ -151,7 +151,7 @@ int machine_id_setup(const char *root, bool force_transient, sd_id128_t machine_ } if (writable) { - if (lseek(fd, 0, SEEK_SET) == (off_t) -1) + if (lseek(fd, 0, SEEK_SET) < 0) return log_error_errno(errno, "Failed to seek %s: %m", etc_machine_id); if (ftruncate(fd, 0) < 0) |