Skip to content
Commit 4daaec6b authored by Guillem Jover's avatar Guillem Jover
Browse files

dpkg: Do not fail when removing non-existent files on read-only filesystems

Trying to rmdir(2) or unlink(2) a non-existent pathname on at least
Linux returns with EROFS. Handle this case specifically to check if
the pathname exists with access(2).

Closes: #838877
parent 1e365818
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment