diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-02-07 23:51:37 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-02-07 23:51:37 +0000 |
commit | 84378fa99ae3ce256fea9eb25d8ae999d1c91fdf (patch) | |
tree | dd2f099a99476bd920082f518b753d51bfca2aeb /lib | |
parent | 78b078b455b834695ebd3104ec3dbe8a4ac9f3a3 (diff) | |
download | tar-84378fa99ae3ce256fea9eb25d8ae999d1c91fdf.tar.gz |
* gnulib.modules: Add closeout, exitfial.
* lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c,
closeout.h.
* src/buffer.c: Incluse closeout.h.
(_open_archive): Use freopen rather than fopen, so
that stdlis is always either stdout or stderr. Use
close_stdout_set_file_name to report its name.
* src/tar.c: Include closeout.h and exitfail.h.
(parse_opt, usage): Call close_stdout as appropriate, to check for
write errors.
(decode_options): Exit with status TAREXIT_FAILURE, not 1.
(main): Set exit_failure, to exit with proper status on memory
allocation failure and the like.
Use close_stdout rather than rolling our own test.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.cvsignore | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore index 900e49e6..ac25e8dc 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -1,4 +1,8 @@ .deps +__fpending.c +__fpending.h +closeout.c +closeout.h Makefile Makefile.am Makefile.in |