Do not complain if pmvarrun had no permission to unlink. --- a/src/pmvarrun.c +++ b/src/pmvarrun.c @@ -452,7 +452,7 @@ static int write_count(int fd, long nv, const char *filename) { if (nv <= 0) { if (unlink(filename) >= 0) return true; - if (errno != EPERM) + if (errno != EPERM && errno != EACCES) l0g("could not unlink %s: %s\n", filename, strerror(errno)); /* * Fallback to just blanking the file. This can happen when