From: Jim Meyering Date: Fri, 5 May 2000 21:49:44 +0000 (+0000) Subject: Include "closeout.h". X-Git-Tag: SH-UTILS-2_0h~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1c98ab3fbc155e3e578d1b44e79b1e8466dc672;p=platform%2Fupstream%2Fcoreutils.git Include "closeout.h". (main): Call close_stdout. --- diff --git a/src/pwd.c b/src/pwd.c index b0a8e0108..13812220e 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); }