debian/patches/006-pmvarrun-allow-eacces
raw| 1 | Do not complain if pmvarrun had no permission to unlink. |
| 2 | |
| 3 | --- a/src/pmvarrun.c |
| 4 | +++ b/src/pmvarrun.c |
| 5 | @@ -452,7 +452,7 @@ static int write_count(int fd, long nv, const char *filename) { |
| 6 | if (nv <= 0) { |
| 7 | if (unlink(filename) >= 0) |
| 8 | return true; |
| 9 | - if (errno != EPERM) |
| 10 | + if (errno != EPERM && errno != EACCES) |
| 11 | l0g("could not unlink %s: %s\n", filename, strerror(errno)); |
| 12 | /* |
| 13 | * Fallback to just blanking the file. This can happen when |