summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorPatrick Steinhardt2019-08-15 12:50:05 +0200
committerKarel Zak2019-08-20 14:04:33 +0200
commitad167a9023aa1fd04653c6aed0256132514827aa (patch)
treee90bae7ac0da44f1e754a780b3c28bfb8d9d4744 /libmount/src/tab_parse.c
parentwdctl: remove duplicate include of <unistd.h> (diff)
downloadkernel-qcow2-util-linux-ad167a9023aa1fd04653c6aed0256132514827aa.tar.gz
kernel-qcow2-util-linux-ad167a9023aa1fd04653c6aed0256132514827aa.tar.xz
kernel-qcow2-util-linux-ad167a9023aa1fd04653c6aed0256132514827aa.zip
libmount: fix comment referring to passno field
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>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 8e94715d2..2dfa6cbb4 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -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]"));