diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-02-07 23:51:16 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-02-07 23:51:16 +0000 |
commit | 7a86488bf7607f5935c36a391f40743cbb32106a (patch) | |
tree | 7f973b3f9297a919ca74c7a519b034ac68310b60 | |
parent | 816a1cf92921e78938299ce6cc83424ce2aa4e28 (diff) | |
download | paxutils-7a86488bf7607f5935c36a391f40743cbb32106a.tar.gz |
* gnulib.modules: Add closeout.
* rmt/rmt.c: Include closeout.h.
(main, usage): Use close_stdout to report write errors properly.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gnulib.modules | 1 | ||||
-rw-r--r-- | rmt/rmt.c | 7 |
3 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2006-02-07 Paul Eggert <eggert@cs.ucla.edu> + * gnulib.modules: Add closeout. + * rmt/rmt.c: Include closeout.h. + (main, usage): Use close_stdout to report write errors properly. + * gnulib.modules: Add version-etc-fsf. * rmt/rmt.c: Include <version-etc.h>. (main): Use version_etc rather than rolling our own. diff --git a/gnulib.modules b/gnulib.modules index a409dfb..9b94850 100644 --- a/gnulib.modules +++ b/gnulib.modules @@ -1,6 +1,7 @@ # List of gnulib modules needed for GNU paxutils. # A module name per line. Empty lines and comments are ignored. +closeout dirname full-write getdate @@ -1,7 +1,7 @@ /* Remote connection server. - Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005 - Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004, + 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -32,6 +32,7 @@ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include "system.h" +#include <closeout.h> #include <localedir.h> #include <safe-read.h> #include <full-write.h> @@ -260,6 +261,7 @@ Manipulate a tape drive, accepting commands from a remote process.\n\ --help Output this help.\n"), program_name); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); + close_stdout (); } exit (status); @@ -563,6 +565,7 @@ main (int argc, char **argv) case 'v': version_etc (stdout, "rmt", PACKAGE_NAME, PACKAGE_VERSION, "John Gilmore", "Jay Fenlason", (char *) NULL); + close_stdout (); return EXIT_SUCCESS; case -1: |