]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-journal/sd-journal.c
stat-util: unify code that checks whether something is a regular file
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2018 17:01:05 +0000 (18:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 14:39:31 +0000 (15:39 +0100)
commit3cc44114038621237a9d8ee4be3ff836138a55c1
tree667e511d5a69feb4c11ab5830f2669b723764401
parent9c66f528138f4fc856b3e9e137245b7048d5747d
stat-util: unify code that checks whether something is a regular file

Let's add a common implementation for regular file checks, that are
careful to return the right error code (EISDIR/EISLNK/EBADFD) when we
are encountering a wrong file node.
src/basic/btrfs-util.c
src/basic/stat-util.c
src/basic/stat-util.h
src/import/export-raw.c
src/journal/journal-file.c
src/journal/sd-journal.c
src/shared/install.c
src/shared/loop-util.c