aboutsummaryrefslogtreecommitdiffstats
path: root/extension/inplace.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-10-08 10:21:47 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-10-08 10:21:47 +0300
commit3c4daf4e10892a471111a95f62d99d660ab24552 (patch)
treeb181a8e5ea093127f938d101afd5c8793cee57dc /extension/inplace.c
parent62988ea2ac1f845e30c3986bfc9bf4620693682a (diff)
parente86f9bcc463370f27f005439c2d8bb73a0caafbd (diff)
downloadegawk-3c4daf4e10892a471111a95f62d99d660ab24552.tar.gz
egawk-3c4daf4e10892a471111a95f62d99d660ab24552.tar.bz2
egawk-3c4daf4e10892a471111a95f62d99d660ab24552.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'extension/inplace.c')
-rw-r--r--extension/inplace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/extension/inplace.c b/extension/inplace.c
index e2f8b73f..8a7375c4 100644
--- a/extension/inplace.c
+++ b/extension/inplace.c
@@ -171,9 +171,8 @@ do_inplace_begin(int nargs, awk_value_t *result)
/* N.B. chown/chmod should be more portable than fchown/fchmod */
if (chown(state.tname, sbuf.st_uid, sbuf.st_gid) < 0)
- /* checking chown here shuts up the compiler. bleah */
- if (chown(state.tname, -1, sbuf.st_gid) < 0)
- ;
+ (void) chown(state.tname, -1, sbuf.st_gid);
+
if (chmod(state.tname, sbuf.st_mode) < 0)
fatal(ext_id, _("inplace_begin: chmod failed (%s)"),
strerror(errno));