(main): Call close_stdout.
/* 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
#include <sys/types.h>
#include "system.h"
+#include "closeout.h"
#include "long-options.h"
#include "error.h"
error (1, errno, _("cannot get current directory"));
printf ("%s\n", wd);
+ close_stdout ();
+
exit (0);
}