]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix missing space after UNIQID= in utab
authorKarel Zak <kzak@redhat.com>
Thu, 25 Jun 2026 10:17:13 +0000 (12:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jun 2026 09:05:33 +0000 (11:05 +0200)
The fprintf format for UNIQID= was missing a trailing space separator,
causing the field to run into the next field (e.g.,
"UNIQID=2147492389SRC=tmpfs").

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_update.c

index 4beeaff6f072eb3b637c1e2a0097927dd3efa428..1d87507fea00ab4d2070770e1b007521940cce73 100644 (file)
@@ -449,7 +449,7 @@ static int fprintf_utab_fs(FILE *f, struct libmnt_fs *fs)
        if (mnt_fs_get_id(fs) > 0)
                rc = fprintf(f, "ID=%d ", mnt_fs_get_id(fs));
        if (mnt_fs_get_uniq_id(fs) > 0)
-               rc = fprintf(f, "UNIQID=%" PRIu64, mnt_fs_get_uniq_id(fs));
+               rc = fprintf(f, "UNIQID=%" PRIu64 " ", mnt_fs_get_uniq_id(fs));
 
        if (rc >= 0) {
                p = mangle(mnt_fs_get_source(fs));