[Pcsclite-cvs-commit] r3079 - /trunk/PCSC/src/eventhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Aug 6 09:05:29 UTC 2008
Author: rousseau
Date: Wed Aug 6 09:05:29 2008
New Revision: 3079
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3079
Log:
EHInitializeEventStructures(): call SYS_OpenFile() with the modes used
by SYS_Chmod() and remove useless SYS_Chmod() call
Modified:
trunk/PCSC/src/eventhandler.c
Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=3079&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Wed Aug 6 09:05:29 2008
@@ -50,15 +50,14 @@
SYS_RemoveFile(PCSCLITE_PUBSHM_FILE);
- fd = SYS_OpenFile(PCSCLITE_PUBSHM_FILE, O_RDWR | O_CREAT, 00644);
+ fd = SYS_OpenFile(PCSCLITE_PUBSHM_FILE, O_RDWR | O_CREAT,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0)
{
Log3(PCSC_LOG_CRITICAL, "Cannot create public shared file %s: %s",
PCSCLITE_PUBSHM_FILE, strerror(errno));
exit(1);
}
-
- SYS_Chmod(PCSCLITE_PUBSHM_FILE, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
pageSize = SYS_GetPageSize();
More information about the Pcsclite-cvs-commit
mailing list