X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authfile.c;h=c43b2d655b0a6f2ee1d7640b648b0cc0cf9f35c7;hp=325c29d7a4e66ea96bd79e1efdc47f25b42dc7f1;hb=dc50dc3cbff0a815c899828c991e17f85458631c;hpb=bcae8a6776e8824e347752d8dc71492adef6aa57 diff --git a/authfile.c b/authfile.c index 325c29d..c43b2d6 100644 --- a/authfile.c +++ b/authfile.c @@ -224,7 +224,7 @@ struct _auth_obj authfile(const char *tokenid, } fprintf(fp, "\n"); if (st.st_uid || st.st_gid) { - (void)fchown(fileno(fp), st.st_uid, st.st_gid); + if (fchown(fileno(fp), st.st_uid, st.st_gid)) /*ign*/; } if (fclose(fp) < 0) { ret.err = strerror(errno);