[prev in list] [next in list] [prev in thread] [next in thread]
List: oprofile-commits
Subject: [oprof-cvs] CVS: oprofile/daemon opd_pipe.c,1.1.2.1,1.1.2.2
From: Maynard Johnson <maynardj () users ! sourceforge ! net>
Date: 2007-12-18 23:30:32
Message-ID: E1J4ltQ-0003Nc-3a () sc8-pr-cvs3 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/oprofile/oprofile/daemon
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12922/daemon
Modified Files:
Tag: JIT_SUPPORT
opd_pipe.c
Log Message:
Change pipe permissions to be world writable
Index: opd_pipe.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/daemon/Attic/opd_pipe.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -p -d -r1.1.2.1 -r1.1.2.2
--- opd_pipe.c 12 Dec 2007 23:25:03 -0000 1.1.2.1
+++ opd_pipe.c 18 Dec 2007 23:30:29 -0000 1.1.2.2
@@ -25,12 +25,14 @@ static int fifo;
void opd_create_pipe(void)
{
+ mode_t orig_umask = umask(0111);
if (mkfifo(op_pipe_file, 0666) == -1) {
if (errno != EEXIST) {
perror("oprofiled: couldn't create pipe: ");
exit(EXIT_FAILURE);
}
}
+ umask(orig_umask);
}
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic