* path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock.
Open directory with inheriting enabled.
This commit is contained in:
parent
ba75e8c878
commit
542a6016e5
|
@ -1,3 +1,8 @@
|
|||
2007-05-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock.
|
||||
Open directory with inheriting enabled.
|
||||
|
||||
2007-05-21 Christian Franke <franke@computer.org>
|
||||
|
||||
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidate
|
||||
|
|
|
@ -4224,6 +4224,7 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
|
|||
|
||||
if (win32_cwd)
|
||||
{
|
||||
if (!cwd_lock.acquired ())
|
||||
cwd_lock.acquire ();
|
||||
if (doit)
|
||||
{
|
||||
|
@ -4252,7 +4253,7 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
|
|||
goto out;
|
||||
}
|
||||
h = CreateFile (win32_cwd, FILE_TRAVERSE, FILE_SHARE_VALID_FLAGS,
|
||||
NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS,
|
||||
&sec_none, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS,
|
||||
NULL);
|
||||
if (h == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue