X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=authfile.c;h=c43b2d655b0a6f2ee1d7640b648b0cc0cf9f35c7;hb=b4ed664ffb6e3f3764fa2b2f4b05437df43d7f19;hp=325c29d7a4e66ea96bd79e1efdc47f25b42dc7f1;hpb=bcae8a6776e8824e347752d8dc71492adef6aa57;p=pam_pcsc_cr.git 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);