]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homed-home.c
Merge pull request #15278 from vcaputo/more-trivial-cleanups
[thirdparty/systemd.git] / src / home / homed-home.c
index f553419c4130f349483d53e0f1af03ea883a30b0..09afbc70c3fe0433bdce9909f4aca763632be032 100644 (file)
@@ -422,7 +422,7 @@ static int home_verify_user_record(Home *h, UserRecord *hr, bool *ret_signed_loc
 
         case -ENOKEY:
                 sd_bus_error_setf(ret_error, BUS_ERROR_BAD_SIGNATURE, "User record %s is not signed by any known key, refusing.", hr->user_name);
-                return log_error_errno(is_signed, "Home %s contians user record that is not signed by any known key, refusing.", hr->user_name);
+                return log_error_errno(is_signed, "Home %s contains user record that is not signed by any known key, refusing.", hr->user_name);
 
         default:
                 assert(is_signed < 0);
@@ -436,7 +436,7 @@ static int convert_worker_errno(Home *h, int e, sd_bus_error *error) {
         switch (e) {
 
         case -EMSGSIZE:
-                return sd_bus_error_setf(error, BUS_ERROR_BAD_HOME_SIZE, "File systems of this type cannot shrinked");
+                return sd_bus_error_setf(error, BUS_ERROR_BAD_HOME_SIZE, "File systems of this type cannot be shrinked");
         case -ETXTBSY:
                 return sd_bus_error_setf(error, BUS_ERROR_BAD_HOME_SIZE, "File systems of this type can only be shrinked offline");
         case -ERANGE:
@@ -1470,7 +1470,7 @@ int home_resize(Home *h, uint64_t disk_size, UserRecord *secret, sd_bus_error *e
 
         if (disk_size == UINT64_MAX || disk_size == h->record->disk_size) {
                 if (h->record->disk_size == UINT64_MAX)
-                        return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Not disk size to resize to specified.");
+                        return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "No disk size to resize to specified.");
 
                 c = user_record_ref(h->record); /* Shortcut if size is unspecified or matches the record */
         } else {
@@ -1902,7 +1902,7 @@ static int home_get_disk_status_luks(
                 goto finish;
 
         if (statfs(hd, &sfs) < 0) {
-                log_debug_errno(errno, "Failed  to statfs() %s, ignoring: %m", hd);
+                log_debug_errno(errno, "Failed to statfs() %s, ignoring: %m", hd);
                 goto finish;
         }