Sam Vilain <sam@xxxxxxxxxx> writes: > Subject: sha1_file: accept EACCESS as equivalent to EPERM > > This was testing for 'Operation not permitted' rather than any kind > of 'Permission Denied' error; prefer EACCESS. > > Signed-off-by: Sam Vilain <sam@xxxxxxxxxx> > -- > Sorry for the inevitable wrapping/whitespace fail :( > > diff --git a/sha1_file.c b/sha1_file.c > index 7662330..cd422e6 100644 > --- a/sha1_file.c > +++ b/sha1_file.c > @@ -2231,7 +2231,7 @@ static int create_tmpfile(char *buffer, size_t > bufsiz, const char *filename) > memcpy(buffer, filename, dirlen); > strcpy(buffer + dirlen, "tmp_obj_XXXXXX"); > fd = mkstemp(buffer); > - if (fd < 0 && dirlen && (errno != EPERM)) { > + if (fd < 0 && dirlen && (errno != EACCESS)) { Is this accepting the two as equivalents??? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html