mirror of
https://github.com/systemd/systemd
synced 2025-09-27 15:54:47 +02:00
Compare commits
No commits in common. "79a998fa21044d2d47392aa1db8015689ce1216e" and "4832454cb660f7bb4f20d0882d3784bcf4cfee6c" have entirely different histories.
79a998fa21
...
4832454cb6
@ -10,8 +10,6 @@ HostonlyInitrd=yes
|
|||||||
[Packages]
|
[Packages]
|
||||||
BuildDirectory=mkosi.builddir
|
BuildDirectory=mkosi.builddir
|
||||||
Cache=mkosi.cache
|
Cache=mkosi.cache
|
||||||
InstallDirectory=mkosi.installdir
|
|
||||||
SourceFileTransferFinal=copy-git-others
|
|
||||||
|
|
||||||
[Host]
|
[Host]
|
||||||
QemuHeadless=yes
|
QemuHeadless=yes
|
||||||
|
@ -226,12 +226,13 @@ int fd_is_network_fs(int fd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int path_is_temporary_fs(const char *path) {
|
int path_is_temporary_fs(const char *path) {
|
||||||
struct statfs s;
|
_cleanup_close_ int fd = -1;
|
||||||
|
|
||||||
if (statfs(path, &s) < 0)
|
fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_PATH);
|
||||||
|
if (fd < 0)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
return is_temporary_fs(&s);
|
return fd_is_temporary_fs(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
int stat_verify_regular(const struct stat *st) {
|
int stat_verify_regular(const struct stat *st) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user