stat-util: don't try to open path on path_is_temporary_fs()
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Jan 2021 17:05:56 +0000 (18:05 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Feb 2021 13:52:53 +0000 (14:52 +0100)
commita2f0da2de006c74bca64b3ce5b023e99bcca4498
tree4b50397592d3beece97a7373c3dfa73343640b9e
parent7c63e5ed58fc5d0cf2653e614fee2765b495085a
stat-util: don't try to open path on path_is_temporary_fs()

I mean, the old code at least used O_PATH, but still, we shouldn't
allocate/close an fd if we don't have to.

(cherry picked from commit 15308e5083391f6a1b9ce25c5b7323f37544eab8)
src/basic/stat-util.c