[PD-cvs] SF.net SVN: pure-data:[10556] trunk/pd/src
millerpuckette at users.sourceforge.net
millerpuckette at users.sourceforge.net
Wed Jan 14 22:38:14 CET 2009
Revision: 10556
http://pure-data.svn.sourceforge.net/pure-data/?rev=10556&view=rev
Author: millerpuckette
Date: 2009-01-14 21:38:14 +0000 (Wed, 14 Jan 2009)
Log Message:
-----------
0.42-2 - setuid and find bug fixes
Modified Paths:
--------------
trunk/pd/src/m_binbuf.c
trunk/pd/src/m_pd.h
trunk/pd/src/s_inter.c
Modified: trunk/pd/src/m_binbuf.c
===================================================================
--- trunk/pd/src/m_binbuf.c 2009-01-14 15:39:26 UTC (rev 10555)
+++ trunk/pd/src/m_binbuf.c 2009-01-14 21:38:14 UTC (rev 10556)
@@ -1330,7 +1330,7 @@
}
else if (a1->a_type == A_SYMBOL || a1->a_type == A_DOLLSYM)
{
- if ((a2->a_type != A_SYMBOL && a2->a_type == A_DOLLSYM)
+ if ((a2->a_type != A_SYMBOL && a2->a_type != A_DOLLSYM)
|| (wholeword && a1->a_w.w_symbol != a2->a_w.w_symbol)
|| (!wholeword && !strstr(a1->a_w.w_symbol->s_name,
a2->a_w.w_symbol->s_name)))
Modified: trunk/pd/src/m_pd.h
===================================================================
--- trunk/pd/src/m_pd.h 2009-01-14 15:39:26 UTC (rev 10555)
+++ trunk/pd/src/m_pd.h 2009-01-14 21:38:14 UTC (rev 10556)
@@ -10,7 +10,7 @@
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 42
-#define PD_BUGFIX_VERSION 2
+#define PD_BUGFIX_VERSION 3
#define PD_TEST_VERSION ""
/* old name for "MSW" flag -- we have to take it for the sake of many old
Modified: trunk/pd/src/s_inter.c
===================================================================
--- trunk/pd/src/s_inter.c 2009-01-14 15:39:26 UTC (rev 10555)
+++ trunk/pd/src/s_inter.c 2009-01-14 21:38:14 UTC (rev 10556)
@@ -1097,7 +1097,7 @@
}
else if (!childpid) /* we're the child */
{
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
#ifndef __APPLE__
/* the wish process in Unix will make a wish shell and
read/write standard in and out unless we close the
@@ -1173,14 +1173,14 @@
if (pipe(pipe9) < 0)
{
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
sys_sockerror("pipe");
return (1);
}
watchpid = fork();
if (watchpid < 0)
{
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
if (errno)
perror("sys_startgui");
else fprintf(stderr, "sys_startgui failed\n");
@@ -1189,7 +1189,7 @@
else if (!watchpid) /* we're the child */
{
sys_set_priority(1);
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
if (pipe9[1] != 0)
{
dup2(pipe9[0], 0);
@@ -1206,7 +1206,7 @@
else /* we're the parent */
{
sys_set_priority(0);
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
close(pipe9[0]);
sys_watchfd = pipe9[1];
/* We also have to start the ping loop in the GUI;
@@ -1214,7 +1214,7 @@
}
}
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
#endif /* __linux__ */
#ifdef MSW
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list