]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: fix device node major:minor logging to use i->major_minor 42791/head
authordongshengyuan <545258830@qq.com>
Mon, 29 Jun 2026 02:20:59 +0000 (10:20 +0800)
committerdongshengyuan <545258830@qq.com>
Mon, 29 Jun 2026 09:20:22 +0000 (17:20 +0800)
commitaf02a393f59520fd7069c8e4a06691b22e5b1d80
tree96d3dfd4c58e20e2e7692656080d9cc439118657
parent4393625a1bddded558ab72b53ec58d6f511c7809
tmpfiles: fix device node major:minor logging to use i->major_minor

The debug log after creating a device node passed major(i->mode) and
minor(i->mode) to format the device number, but i->mode holds the
file permission bits (e.g. 0644), not the device number.

The device major:minor is stored in i->major_minor, which is also
what mknodat() receives. Use that field instead so the log correctly
reports the created device number.

Signed-off-by: dongshengyuan <dongshengyuan@uniontech.com>
src/tmpfiles/tmpfiles.c