]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/machine/machined-dbus.c
tree-wide: check if return value of lseek() and friends is negative
[thirdparty/systemd.git] / src / machine / machined-dbus.c
index 979eb3cee78685e08252b89d48aba84c12b38264..a12eb516cc5069c74b74752f64beb4464f74f535 100644 (file)
@@ -613,7 +613,7 @@ static int clean_pool_done(Operation *operation, int ret, sd_bus_error *error) {
         assert(operation);
         assert(operation->extra_fd >= 0);
 
-        if (lseek(operation->extra_fd, 0, SEEK_SET) == (off_t) -1)
+        if (lseek(operation->extra_fd, 0, SEEK_SET) < 0)
                 return -errno;
 
         f = take_fdopen(&operation->extra_fd, "r");