]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fix typos
authorYang Hau <yuanyanghau@gmail.com>
Tue, 20 Aug 2024 15:48:19 +0000 (23:48 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Aug 2024 08:15:25 +0000 (10:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt-verify.c
misc-utils/lsblk.c
sys-utils/setpriv-landlock.c
tests/helpers/test_mkfds.c

index 845f31fdab11d4c0f0424b2dcee1a474e131f14e..ecb51d9cfccb8721af658baa8f5e8b16a2d99dc3 100644 (file)
@@ -449,12 +449,12 @@ static int verify_fstype(struct verify_context *vfy)
        realtype = mnt_get_fstype(src, &ambi, cache);
 
        if (!realtype) {
-               const char *raeson = errno ? strerror(errno) : _("reason unknown");
+               const char *reason = errno ? strerror(errno) : _("reason unknown");
 
                if (isauto)
-                       verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
+                       verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), reason);
                else
-                       verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
+                       verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), reason);
                goto done;
        }
 
index 41e9470ea75a32ed03adbd186d2057c76d48242f..20c4de238c2fe6b4b3da111d41512b883869bca9 100644 (file)
@@ -2311,8 +2311,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -M, --merge          group parents of sub-trees (usable for RAIDs, Multi-path)\n"), out);
        fputs(_(" -O, --output-all     output all columns\n"), out);
        fputs(_(" -P, --pairs          use key=\"value\" output format\n"), out);
-       fputs(_(" -Q, --filter <expr>  print only lines maching the expression\n"), out);
-       fputs(_("     --highlight <expr> colorize lines maching the expression\n"), out);
+       fputs(_(" -Q, --filter <expr>  print only lines matching the expression\n"), out);
+       fputs(_("     --highlight <expr> colorize lines matching the expression\n"), out);
        fputs(_("     --ct-filter <expr> restrict the next counter\n"), out);
        fputs(_("     --ct <name>[:<param>[:<func>]] define a custom counter\n"), out);
        fputs(_(" -S, --scsi           output info about SCSI devices\n"), out);
index 00ad38c61cc1451df3593a1326c7264f245d942c..efbacafd0b1b9b508577ad375337a3216bc2da4a 100644 (file)
@@ -191,7 +191,7 @@ void do_landlock(const struct setpriv_landlock_opts *opts)
                err(SETPRIV_EXIT_PRIVERR, _("disallow granting new privileges for landlock failed"));
 
        if (landlock_restrict_self(fd, 0) == -1)
-               err(SETPRIV_EXIT_PRIVERR, _("landlock_restrict_self faild"));
+               err(SETPRIV_EXIT_PRIVERR, _("landlock_restrict_self failed"));
 }
 
 void usage_setpriv(FILE *out)
index 60ebdd67611a45693109da7d2753b676263d0281..a99a28f4d459416ecb03bd8c9c2db34b2917f395 100644 (file)
@@ -1693,7 +1693,7 @@ static void *make_unix_in_new_netns(const struct factory *factory, struct fdesc
                close_fdesc(tmp_netns, NULL);
                close_unix_socket(sd, fdescs[2].data);
                errno = e;
-               err(EXIT_FAILURE, "failed to swich back to the original net namespace");
+               err(EXIT_FAILURE, "failed to switch back to the original net namespace");
        }
 
        return NULL;
@@ -4156,13 +4156,13 @@ static const struct factory factories[] = {
                        {
                                .name = "interval",
                                .type = PTYPE_UINTEGER,
-                               .desc = "inteval in seconds",
+                               .desc = "interval in seconds",
                                .defv.uinteger = 10,
                        },
                        {
                                .name = "interval-nanofrac",
                                .type = PTYPE_UINTEGER,
-                               .desc = "nsec part of inteval",
+                               .desc = "nsec part of interval",
                                .defv.uinteger = 0,
                        },