[Pcsclite-cvs-commit] r4237 - /trunk/PCSC/src/pcscdaemon.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Jun 1 09:20:05 UTC 2009
Author: rousseau
Date: Mon Jun 1 09:20:05 2009
New Revision: 4237
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4237
Log:
main(): create the PCSCLITE_EVENTS_DIR directory with the sticky bit so
only root or the owner of the file can remove it
Thanks to Tomas Mraz for the bug report
Modified:
trunk/PCSC/src/pcscdaemon.c
Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=4237&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Mon Jun 1 09:20:05 2009
@@ -444,7 +444,8 @@
rv = SYS_Stat(PCSCLITE_EVENTS_DIR, &fStatBuf);
if (rv < 0)
{
- int mode = S_IRWXU | S_IWGRP | S_IXGRP | S_IWOTH | S_IXOTH; /* 0733 */
+ /* 1733 : world writable + sticky bit */
+ int mode = S_IRWXU | S_IWGRP | S_IXGRP | S_IWOTH | S_IXOTH | S_ISVTX;
rv = SYS_Mkdir(PCSCLITE_EVENTS_DIR, mode);
if (rv != 0)
More information about the Pcsclite-cvs-commit
mailing list