diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-08-19 09:46:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-08-19 09:46:31 +0000 |
commit | ec8a7e416f570407fe5360959272418a2b4c79f8 (patch) | |
tree | 85b1b67db3da90ab72479e98e8dceb06ab96cc35 /winsup/cygwin/posix_ipc.cc | |
parent | 46c6def37f8e2c1747e6715f6c811a62820bdc33 (diff) | |
download | cygnal-ec8a7e416f570407fe5360959272418a2b4c79f8.tar.gz cygnal-ec8a7e416f570407fe5360959272418a2b4c79f8.tar.bz2 cygnal-ec8a7e416f570407fe5360959272418a2b4c79f8.zip |
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Drop fattr variable
and use FILE_ATTRIBUTE_DIRECTORY directly in call to NtCreateFile.
* posix_ipc.cc (ipc_mutex_init): Fix format string when creating IPC
object name.
(ipc_cond_init): Ditto.
* security.cc (alloc_sd): Add parentheses to fix setting initial
owner_allow value.
Diffstat (limited to 'winsup/cygwin/posix_ipc.cc')
-rw-r--r-- | winsup/cygwin/posix_ipc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/posix_ipc.cc b/winsup/cygwin/posix_ipc.cc index 102691ecb..53b887493 100644 --- a/winsup/cygwin/posix_ipc.cc +++ b/winsup/cygwin/posix_ipc.cc @@ -90,7 +90,7 @@ ipc_mutex_init (HANDLE *pmtx, const char *name) char buf[MAX_PATH]; SECURITY_ATTRIBUTES sa = sec_none; - __small_sprintf (buf, "mqueue/mtx_%W", name); + __small_sprintf (buf, "mqueue/mtx_%s", name); sa.lpSecurityDescriptor = everyone_sd (CYG_MUTANT_ACCESS); *pmtx = CreateMutex (&sa, FALSE, buf); if (!*pmtx) @@ -135,7 +135,7 @@ ipc_cond_init (HANDLE *pevt, const char *name) char buf[MAX_PATH]; SECURITY_ATTRIBUTES sa = sec_none; - __small_sprintf (buf, "mqueue/evt_%W", name); + __small_sprintf (buf, "mqueue/evt_%s", name); sa.lpSecurityDescriptor = everyone_sd (CYG_EVENT_ACCESS); *pevt = CreateEvent (&sa, TRUE, FALSE, buf); if (!*pevt) |