]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkfs-util: Skip non files/directories when calling mcopy 25500/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 23 Nov 2022 13:12:38 +0000 (14:12 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 24 Nov 2022 13:02:22 +0000 (14:02 +0100)
commitc75cf0164cbd69104f13cbe7be42ab639953bd7d
tree0f77841be432ebbed04ab16b6acc80ab848e0170
parenta0a4c57818ac9137e7fe2903b6f2a032fca9292e
mkfs-util: Skip non files/directories when calling mcopy

Only files and directories are supported by vfat. When we pass a
symlink to mcopy, it will try to dereference them and copy what the
symlink points at into the vfat partition instead. Let's avoid this
by skipping all unsupported file types when establishing the list of
top level targets that mcopy should copy.

We also use RECURSE_DIR_SORT everywhere when iterating directories
to make things more reproducible.
src/shared/mkfs-util.c