]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix typos
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 14 Aug 2024 19:37:39 +0000 (21:37 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 14 Aug 2024 19:37:39 +0000 (21:37 +0200)
These occurrences should be "trailing" instead of "tailing".

12 files changed:
include/pathnames.h
include/strutils.h
lib/fileutils.c
lib/loopdev.c
lib/strutils.c
libfdisk/src/ask.c
libmount/python/fs.c
libmount/python/tab.c
libmount/src/tab.c
libsmartcols/samples/fromfile.c
libsmartcols/src/table.c
misc-utils/blkid.c

index a148f24d9b2d9e6016a06dbe48527d6764b6d30e..12628a5d182db50fb78662dd80e6b7b7cda5e36a 100644 (file)
 
 #ifndef _PATH_DEV
   /*
-   * The tailing '/' in _PATH_DEV is there for compatibility with libc.
+   * The trailing '/' in _PATH_DEV is there for compatibility with libc.
    */
 # define _PATH_DEV             "/dev/"
 #endif
index c6172af43c94758598cb6304c92acd597263624c..e5ddbcf1bf83f36efd6f67be8ad45098b985b6cd 100644 (file)
@@ -388,7 +388,7 @@ static inline size_t __normalize_whitespace(
                else
                        dst[x++] = src[i++];
        }
-       if (nsp && x > 0)               /* tailing space */
+       if (nsp && x > 0)               /* trailing space */
                x--;
 done:
        dst[x] = '\0';
index 95ee516350cae32d784ad46c1a156fd2dc2e07c6..b7acae43082196238a408a9cf5a2aed169a79e06 100644 (file)
@@ -332,7 +332,7 @@ char *ul_basename(char *path)
                return p + 1;           /* begin of the name */
 
        while (p > path && *(p - 1) == '/')
-               --p;                    /* remove tailing '/' */
+               --p;                    /* remove trailing '/' */
 
        if (p > path) {
                *p-- = '\0';
index c72fb2c404b676ed7cfd0234ebb4b4ad256d2625..699322c4a748ad17a710cf25d6b24764905d30b9 100644 (file)
@@ -135,7 +135,7 @@ int loopcxt_set_device(struct loopdev_cxt *lc, const char *device)
                                if (strlen(device) < 5)
                                        return -1;
                                device += 4;
-                               dir = _PATH_DEV_LOOP "/";       /* _PATH_DEV uses tailing slash */
+                               dir = _PATH_DEV_LOOP "/";       /* _PATH_DEV uses trailing slash */
                        }
                        snprintf(lc->device, sizeof(lc->device), "%s%s",
                                dir, device);
index 9ea5da7cbcc3c574a35cd46437e2425ab6c6e22a..e3a059145a72d55f1c33964f7e1547f5efe28541 100644 (file)
@@ -919,7 +919,7 @@ int streq_paths(const char *a, const char *b)
                if (a_sz + b_sz == 0)
                        return 1;
 
-               /* ignore tailing slash */
+               /* ignore trailing slash */
                if (a_sz + b_sz == 1 &&
                    ((a_seg && *a_seg == '/') || (b_seg && *b_seg == '/')))
                        return 1;
index 6e566256dbcb207870c69481812ee1cfd998d439..507cc6fc63d749210ba2b13cf7631cbacfcbb943 100644 (file)
@@ -430,7 +430,7 @@ static char *mk_string_list(char *ptr, size_t *len, size_t *begin,
 
        if (cur == -1 && *begin) {
                /* end of the list */
-               *(ptr - 1) = '\0';      /* remove tailing ',' from the list */
+               *(ptr - 1) = '\0';      /* remove trailing ',' from the list */
                return ptr;
        }
 
index ccb2460a3fc5e612f67338853e832307c984af73..a8e60eea79178606ff0363a9a1b635042546447a 100644 (file)
@@ -584,7 +584,7 @@ static PyObject *Fs_match_options(FsObject *self, PyObject *args, PyObject *kwds
 }
 
 #define Fs_streq_srcpath_HELP "streq_srcpath(srcpath)\n\n" \
-               "Compares fs source path with path. The tailing slash is ignored.\n" \
+               "Compares fs source path with path. The trailing slash is ignored.\n" \
                "Returns True if fs source path equal to path, otherwise False."
 static PyObject *Fs_streq_srcpath(FsObject *self, PyObject *args, PyObject *kwds)
 {
@@ -599,7 +599,7 @@ static PyObject *Fs_streq_srcpath(FsObject *self, PyObject *args, PyObject *kwds
 }
 
 #define Fs_streq_target_HELP "streq_target(target)\n\n" \
-               "Compares fs target path with path. The tailing slash is ignored.\n" \
+               "Compares fs target path with path. The trailing slash is ignored.\n" \
                "See also Fs.match_target().\n" \
                "Returns True if fs target path equal to path, otherwise False."
 static PyObject *Fs_streq_target(FsObject *self, PyObject *args, PyObject *kwds)
index d33a1fe3b7e26d9d9bd9fab0352c19b5e042aeb6..8401ee1b21cbd7d853ce1bb04d8177a78280bb1b 100644 (file)
@@ -101,7 +101,7 @@ static int Table_set_trailing_comment(TableObject *self, PyObject *value,
        "The initial (intro) file comment is accessible by\n" \
        "Tab.intro_comment. The intro and the comment of the first fstab" \
        "entry has to be separated by blank line.  The filesystem comments are\n" \
-       "accessible by Fs.comment. The tailing fstab comment is accessible\n" \
+       "accessible by Fs.comment. The trailing fstab comment is accessible\n" \
        "by Tab.trailing_comment.\n" \
        "\n" \
        "<informalexample>\n" \
@@ -114,7 +114,7 @@ static int Table_set_trailing_comment(TableObject *self, PyObject *value,
        "LABEL=foo /mnt/foo auto defaults 1 2\n" \
        "# this comments belongs to the second fs\n" \
        "LABEL=bar /mnt/bar auto defaults 1 2 \n" \
-       "# tailing comment\n" \
+       "# trailing comment\n" \
        "</programlisting>\n" \
        "</informalexample>"
 static PyObject *Table_enable_comments(TableObject *self, PyObject *args,
index 526edcee6cca9b33947e09f5d308a3aff537b6e5..2b89552eb2fbf11a84d0439eb37785975a22f32e 100644 (file)
@@ -249,7 +249,7 @@ void *mnt_table_get_userdata(struct libmnt_table *tb)
  *     LABEL=foo /mnt/foo auto defaults 1 2
  *     # this comments belongs to the second fs
  *     LABEL=bar /mnt/bar auto defaults 1 2
- *     # tailing comment
+ *     # trailing comment
  *  </programlisting>
  * </informalexample>
  */
index cf77cc47663493095fe68947bce938dd2d6e0b87..3c79b509b21859e2b414c236effed69b5d6d53b7 100644 (file)
@@ -205,7 +205,7 @@ static void __attribute__((__noreturn__)) usage(void)
                "\n %s [options] <column-data-file> ...\n\n", program_invocation_short_name);
 
        fputs(" -m, --maxout                   fill all terminal width\n", out);
-       fputs(" -M, --minout                   minimize tailing padding\n", out);
+       fputs(" -M, --minout                   minimize trailing padding\n", out);
        fputs(" -c, --column <file>            column definition\n", out);
        fputs(" -n, --nlines <num>             number of lines\n", out);
        fputs(" -J, --json                     JSON output format\n", out);
index 3d23da8d9b96796e1739a39fe97b21752bf35f86..dc6a3a74b1169092f5c894e08a11af860c67ec44 100644 (file)
@@ -1292,7 +1292,7 @@ int scols_table_enable_maxout(struct libscols_table *tb, int enable)
  *
  * Force library to terminate line after last column with data. The extra
  * padding is not added to the empty cells at the end of the line. The default is fill
- * tailing empty cells except the last line cell.
+ * trailing empty cells except the last line cell.
  *
  * This setting is mutually exclusive to scols_table_enable_maxout().
  *
index 5381d14f72408903e95fb6a82582a6f91573dd63..aaffe19168edcafe7cf0f061611171983b8e93ba 100644 (file)
@@ -464,7 +464,7 @@ static int print_udev_ambivalent(blkid_probe pr)
        }
 
        if (count > 1) {
-               *(val + valsz - 1) = '\0';              /* rem tailing whitespace */
+               *(val + valsz - 1) = '\0';              /* rem trailing whitespace */
                printf("ID_FS_AMBIVALENT=%s\n", val);
                rc = 0;
        }