From: Eugene Crosser Date: Sat, 7 Dec 2013 09:28:43 +0000 (+0400) Subject: silence fchown warning X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=01f9e2f01d2fac650601ba5a2573cd21f57744b5 silence fchown warning --- 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);