aboutsummaryrefslogtreecommitdiffstats
path: root/extension/inplace.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-03-20 17:19:15 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-03-20 17:19:15 +0200
commita31a42403b841ef05ca9143a431c8b6f1021a958 (patch)
tree09668a5683a34d8fcc114c105a6148dd3b717b26 /extension/inplace.c
parent2473b938036dfdd32ff47833ea032a80a6fa5659 (diff)
parent480aca31c7772dafeb1b97cd7a768bca2f49d3c7 (diff)
downloadegawk-a31a42403b841ef05ca9143a431c8b6f1021a958.tar.gz
egawk-a31a42403b841ef05ca9143a431c8b6f1021a958.tar.bz2
egawk-a31a42403b841ef05ca9143a431c8b6f1021a958.zip
Merge branch 'master' into select
Diffstat (limited to 'extension/inplace.c')
-rw-r--r--extension/inplace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/inplace.c b/extension/inplace.c
index 0693ad92..e3685e30 100644
--- a/extension/inplace.c
+++ b/extension/inplace.c
@@ -171,10 +171,10 @@ 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) {
- /* jumping through hoops to silence gcc. :-( */
+ /* jumping through hoops to silence gcc and clang. :-( */
int junk;
junk = chown(state.tname, -1, sbuf.st_gid);
- junk = junk;
+ ++junk;
}
if (chmod(state.tname, sbuf.st_mode) < 0)