diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:52:04 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:52:04 +0200 |
commit | 69b9c6bec08738933d79010ad8c9347e36d19bed (patch) | |
tree | e3d2790fb4a77b871234ba15784bd4e1e057981e /extension/inplace.c | |
parent | 8fc0c719fc910d6931d267b5437cef9048e5a9b0 (diff) | |
parent | cd2ff61aaf4938092517880ad7655828d99a3cb9 (diff) | |
download | egawk-69b9c6bec08738933d79010ad8c9347e36d19bed.tar.gz egawk-69b9c6bec08738933d79010ad8c9347e36d19bed.tar.bz2 egawk-69b9c6bec08738933d79010ad8c9347e36d19bed.zip |
Merge branch 'master' into feature/regex-type
Diffstat (limited to 'extension/inplace.c')
-rw-r--r-- | extension/inplace.c | 4 |
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) |