errno-util: introduce ERRNO_IS_NEG_FS_WRITE_REFUSED()
This commit is contained in:
@@ -660,7 +660,7 @@ int loop_device_make_by_path_at(
|
||||
r = fd;
|
||||
|
||||
/* Retry read-only? */
|
||||
if (open_flags >= 0 || !(ERRNO_IS_PRIVILEGE(r) || r == -EROFS))
|
||||
if (open_flags >= 0 || !ERRNO_IS_NEG_FS_WRITE_REFUSED(r))
|
||||
return r;
|
||||
|
||||
fd = xopenat(dir_fd, path, basic_flags|direct_flags|O_RDONLY);
|
||||
|
||||
Reference in New Issue
Block a user