[Pcsclite-cvs-commit] r2371 - trunk/PCSC/src
Ludovic Rousseau
rousseau at alioth.debian.org
Mon Feb 5 10:10:45 CET 2007
Author: rousseau
Date: 2007-02-05 10:10:45 +0100 (Mon, 05 Feb 2007)
New Revision: 2371
Modified:
trunk/PCSC/src/winscard_clnt.c
Log:
profile_start(): use a different profile file name for each user so two
users can use profiling at the same time
Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c 2007-01-31 13:09:40 UTC (rev 2370)
+++ trunk/PCSC/src/winscard_clnt.c 2007-02-05 09:10:45 UTC (rev 2371)
@@ -69,8 +69,11 @@
if (!initialized)
{
+ char filename[80];
+
initialized = TRUE;
- fd = fopen(PROFILE_FILE, "a+");
+ sprintf(filename, "%s-%d", PROFILE_FILE, getuid());
+ fd = fopen(filename, "a+");
if (NULL == fd)
{
fprintf(stderr, "\33[01;31mCan't open %s: %s\33[0m\n",
More information about the Pcsclite-cvs-commit
mailing list