]> www.average.org Git - pam_pcsc_cr.git/commitdiff
silence fchown warning
authorEugene Crosser <crosser@average.org>
Sat, 7 Dec 2013 09:28:43 +0000 (13:28 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 7 Dec 2013 09:28:43 +0000 (13:28 +0400)
authfile.c

index 325c29d7a4e66ea96bd79e1efdc47f25b42dc7f1..c43b2d655b0a6f2ee1d7640b648b0cc0cf9f35c7 100644 (file)
@@ -224,7 +224,7 @@ struct _auth_obj authfile(const char *tokenid,
                }
                fprintf(fp, "\n");
                if (st.st_uid || st.st_gid) {
                }
                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);
                }
                if (fclose(fp) < 0) {
                        ret.err = strerror(errno);