]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/random-seed/random-seed.c
io-util: introduce loop_write_full that takes a timeout
[thirdparty/systemd.git] / src / random-seed / random-seed.c
index c3353e551825a6ab47e2d52cac79ce48d605db68..25d4d3f584c5cfce7fcf80b154a79789294ab6ab 100644 (file)
@@ -97,7 +97,7 @@ static CreditEntropy may_credit(int seed_fd) {
         }
 
         /* Don't credit the random seed if we are in first-boot mode, because we are supposed to start from
-         * scratch. This is a safety precaution for cases where we people ship "golden" images with empty
+         * scratch. This is a safety precaution for cases where people ship "golden" images with empty
          * /etc but populated /var that contains a random seed. */
         r = RET_NERRNO(access("/run/systemd/first-boot", F_OK));
         if (r == -ENOENT)
@@ -286,7 +286,7 @@ static int save_seed_file(
                 memcpy((uint8_t *)buf + k - l, hash, l);
         }
 
-        r = loop_write(seed_fd, buf, (size_t) k, false);
+        r = loop_write(seed_fd, buf, (size_t) k);
         if (r < 0)
                 return log_error_errno(r, "Failed to write new random seed file: %m");