]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
reread-partition-table: fix typo
authorMike Yuan <me@yhndnzj.com>
Sun, 25 Jan 2026 15:50:00 +0000 (16:50 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Jan 2026 01:56:22 +0000 (10:56 +0900)
src/shared/reread-partition-table.c

index 543482d44094df0d41f079940fe02a461a85463c..8f99b67134de7ea18a23f5be08c009c5441e3870 100644 (file)
@@ -256,7 +256,7 @@ static int reread_partition_table_full(sd_device *dev, int fd, RereadPartitionTa
         if (FLAGS_SET(flags, REREADPT_BSD_LOCK)) {
                 lock_fd = fd_reopen(fd, O_RDONLY|O_CLOEXEC|O_NOCTTY);
                 if (lock_fd < 0)
-                        return log_device_debug_errno(dev, lock_fd, "Failed top open lock fd for block device '%s': %m", p);
+                        return log_device_debug_errno(dev, lock_fd, "Failed to open lock fd for block device '%s': %m", p);
 
                 if (flock(lock_fd, LOCK_EX|LOCK_NB) < 0) {
                         r = log_device_debug_errno(dev, errno, "Failed to take BSD lock on block device '%s': %m", p);