mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
nspawn: path_is_read_only_fs() may return negative errno
And we usually assume /sys is not read only on error.
This commit is contained in:
@@ -469,7 +469,7 @@ int test_network_interface_initialized(const char *name) {
|
||||
_cleanup_(sd_device_unrefp) sd_device *d = NULL;
|
||||
int r;
|
||||
|
||||
if (path_is_read_only_fs("/sys"))
|
||||
if (path_is_read_only_fs("/sys") > 0)
|
||||
return 0;
|
||||
|
||||
/* udev should be around. */
|
||||
|
||||
Reference in New Issue
Block a user