From 04396e79d2db5b88ed1b5a39dfea74ea31def575 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 22 May 2007 13:03:43 +0000 Subject: [PATCH] * path.cc (cwdstuff::set): Revert useless acquire check. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/path.cc | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f23f5e2b1..2b72ec8df 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-05-22 Corinna Vinschen + + * path.cc (cwdstuff::set): Revert useless acquire check. + 2007-05-22 Corinna Vinschen * path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1bd7cff23..52c04afc3 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -4224,8 +4224,7 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit) if (win32_cwd) { - if (!cwd_lock.acquired ()) - cwd_lock.acquire (); + cwd_lock.acquire (); if (doit) { /* We utilize the user parameter block. The directory is