From e1c98ab3fbc155e3e578d1b44e79b1e8466dc672 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 5 May 2000 21:49:44 +0000 Subject: [PATCH] Include "closeout.h". (main): Call close_stdout. --- src/pwd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pwd.c b/src/pwd.c index b0a8e01082..13812220e5 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -1,5 +1,5 @@ /* pwd - print current directory - Copyright (C) 1994-1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1994-1997, 1999, 2000 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 @@ -22,6 +22,7 @@ #include #include "system.h" +#include "closeout.h" #include "long-options.h" #include "error.h" @@ -76,5 +77,7 @@ main (int argc, char **argv) error (1, errno, _("cannot get current directory")); printf ("%s\n", wd); + close_stdout (); + exit (0); } -- 2.47.3