]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix comment referring to passno field
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Aug 2019 10:50:05 +0000 (12:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Aug 2019 12:04:33 +0000 (14:04 +0200)
There's an obvious copy-paste error in `mnt_parse_table_line` when
referring to the 6th field of the fstab format, where it says "freq"
instead of "passno". This has probably been copied from the 5th field,
which is in fact correctly labelled as "freq".

Fix the mistake by changing the comment to say "passno" instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
libmount/src/tab_parse.c

index 8e94715d24533e83eea02c8cc4226772670b5de7..2dfa6cbb4b005fcee44b08ddc231397cb3933f3c 100644 (file)
@@ -154,7 +154,7 @@ static int mnt_parse_table_line(struct libmnt_fs *fs, const char *s)
        if (!s || !*s)
                goto done;
 
-       /* (6) freq (optional) */
+       /* (6) passno (optional) */
        s = next_s32(s, &fs->passno, &rc);
        if (s && *s && rc) {
                DBG(TAB, ul_debug("tab parse error: [passno]"));