Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-08-19 13:46:31 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-08-19 13:46:31 +0400
commitec8a7e416f570407fe5360959272418a2b4c79f8 (patch)
tree85b1b67db3da90ab72479e98e8dceb06ab96cc35 /winsup/cygwin/posix_ipc.cc
parent46c6def37f8e2c1747e6715f6c811a62820bdc33 (diff)
* 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.cc4
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)