* 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>
|
2007-05-21 Christian Franke <franke@computer.org>
|
||||||
|
|
||||||
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidate
|
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidate
|
||||||
|
|
|
@ -4224,7 +4224,8 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
|
||||||
|
|
||||||
if (win32_cwd)
|
if (win32_cwd)
|
||||||
{
|
{
|
||||||
cwd_lock.acquire ();
|
if (!cwd_lock.acquired ())
|
||||||
|
cwd_lock.acquire ();
|
||||||
if (doit)
|
if (doit)
|
||||||
{
|
{
|
||||||
/* We utilize the user parameter block. The directory is
|
/* We utilize the user parameter block. The directory is
|
||||||
|
@ -4252,7 +4253,7 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
h = CreateFile (win32_cwd, FILE_TRAVERSE, FILE_SHARE_VALID_FLAGS,
|
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);
|
NULL);
|
||||||
if (h == INVALID_HANDLE_VALUE)
|
if (h == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue