mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
stat-util: Follow coding style in xstatfsat()
Allow passing NULL to indicate the empty path per coding style.
This commit is contained in:
parent
23e3357842
commit
f90c1959db
@ -461,7 +461,6 @@ int xstatfsat(int dir_fd, const char *path, struct statfs *ret) {
|
||||
_cleanup_close_ int fd = -EBADF;
|
||||
|
||||
assert(dir_fd >= 0 || dir_fd == AT_FDCWD);
|
||||
assert(path);
|
||||
assert(ret);
|
||||
|
||||
fd = xopenat(dir_fd, path, O_PATH|O_CLOEXEC|O_NOCTTY, /* xopen_flags = */ 0, /* mode = */ 0);
|
||||
|
Loading…
Reference in New Issue
Block a user