diff options
Diffstat (limited to 'extension')
-rw-r--r-- | extension/ChangeLog | 10 | ||||
-rw-r--r-- | extension/Makefile.am | 3 | ||||
-rw-r--r-- | extension/Makefile.in | 3 | ||||
-rw-r--r-- | extension/inplace.3am | 7 | ||||
-rw-r--r-- | extension/inplace.c | 4 |
5 files changed, 21 insertions, 6 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog index 16e460a8..ee32f582 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,13 @@ +2015-03-17 Arnold D. Robbins <arnold@skeeve.com> + + * inplace.c (do_inplace_begin): Jump through more hoops to satisfy + a newer version of clang. + * inplace.3am (BUGS): Add new section and documentation. + +2015-02-26 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.am (EXTRA_DIST): Add rwarray0.c to the list. + 2015-02-11 Arnold D. Robbins <arnold@skeeve.com> * filefuncs.c: Punctuation fix. diff --git a/extension/Makefile.am b/extension/Makefile.am index b9dabfe2..3e64bc9b 100644 --- a/extension/Makefile.am +++ b/extension/Makefile.am @@ -119,7 +119,8 @@ EXTRA_DIST = build-aux/config.rpath \ ChangeLog \ ChangeLog.0 \ fts.3 \ - README.fts + README.fts \ + rwarray0.c dist_man_MANS = \ filefuncs.3am fnmatch.3am fork.3am inplace.3am \ diff --git a/extension/Makefile.in b/extension/Makefile.in index 2a6ef5e0..cda5020b 100644 --- a/extension/Makefile.in +++ b/extension/Makefile.in @@ -564,7 +564,8 @@ EXTRA_DIST = build-aux/config.rpath \ ChangeLog \ ChangeLog.0 \ fts.3 \ - README.fts + README.fts \ + rwarray0.c dist_man_MANS = \ filefuncs.3am fnmatch.3am fork.3am inplace.3am \ diff --git a/extension/inplace.3am b/extension/inplace.3am index 5ca04be2..d6339c4a 100644 --- a/extension/inplace.3am +++ b/extension/inplace.3am @@ -1,4 +1,4 @@ -.TH INPLACE 3am "Jan 15 2013" "Free Software Foundation" "GNU Awk Extension Modules" +.TH INPLACE 3am "Mar 16 2015" "Free Software Foundation" "GNU Awk Extension Modules" .SH NAME inplace \- emulate sed/perl/ruby in-place editing .SH SYNOPSIS @@ -45,7 +45,10 @@ extension concatenates that suffix onto the original filename and uses the result as a filename for renaming the original. ... .SH NOTES -... .SH BUGS +.SH BUGS +As currently written, output from an \f(CWENDFILE\fP +rule does not get redirected into the replacement file. +Neither does output from an \f(CWEND\fP rule. .SH EXAMPLE .ft CW .nf 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) |