mirror of
https://github.com/systemd/systemd
synced 2025-09-27 07:44:45 +02:00
Compare commits
2 Commits
4832454cb6
...
79a998fa21
Author | SHA1 | Date | |
---|---|---|---|
![]() |
79a998fa21 | ||
![]() |
15308e5083 |
@ -10,6 +10,8 @@ HostonlyInitrd=yes
|
||||
[Packages]
|
||||
BuildDirectory=mkosi.builddir
|
||||
Cache=mkosi.cache
|
||||
InstallDirectory=mkosi.installdir
|
||||
SourceFileTransferFinal=copy-git-others
|
||||
|
||||
[Host]
|
||||
QemuHeadless=yes
|
||||
|
@ -226,13 +226,12 @@ int fd_is_network_fs(int fd) {
|
||||
}
|
||||
|
||||
int path_is_temporary_fs(const char *path) {
|
||||
_cleanup_close_ int fd = -1;
|
||||
struct statfs s;
|
||||
|
||||
fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_PATH);
|
||||
if (fd < 0)
|
||||
if (statfs(path, &s) < 0)
|
||||
return -errno;
|
||||
|
||||
return fd_is_temporary_fs(fd);
|
||||
return is_temporary_fs(&s);
|
||||
}
|
||||
|
||||
int stat_verify_regular(const struct stat *st) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user