From 285169e7ba4d7b6fe32a202f6cee79792a90ff18 Mon Sep 17 00:00:00 2001 From: corinna Date: Wed, 24 Aug 2005 15:50:10 +0000 Subject: [PATCH] * syscalls.cc (endusershell): Reset shell_fp to NULL to allow subsequent getusershell calls. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/syscalls.cc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c97cb6130e..9fff7adc37 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-08-24 Corinna Vinschen + + * syscalls.cc (endusershell): Reset shell_fp to NULL to allow + subsequent getusershell calls. + 2005-08-24 Christopher Faylor * path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 516ce696a8..c6827fa89e 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -3052,7 +3052,10 @@ extern "C" void endusershell () { if (shell_fp) - fclose (shell_fp); + { + fclose (shell_fp); + shell_fp = NULL; + } shell_index = 0; } -- 2.11.0