From 01f9e2f01d2fac650601ba5a2573cd21f57744b5 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Sat, 7 Dec 2013 13:28:43 +0400 Subject: [PATCH] silence fchown warning --- authfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2