aboutsummaryrefslogtreecommitdiff
path: root/pd/src/s_inter.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2009-01-14 21:38:14 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2009-01-14 21:38:14 +0000
commit4dba8e06840efa789616e20b8eed52dd85f78ca0 (patch)
tree6b80bc500d7443fc1bdcd0b592359ea00bfe2be3 /pd/src/s_inter.c
parent675912671a2a99080acf0a06a26005d1f887ccb6 (diff)
0.42-2 - setuid and find bug fixes
svn path=/trunk/; revision=10556
Diffstat (limited to 'pd/src/s_inter.c')
-rw-r--r--pd/src/s_inter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index 8ed6f373..c67076f3 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -1097,7 +1097,7 @@ int sys_startgui(const char *guidir)
}
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 @@ int sys_startgui(const char *guidir)
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 @@ int sys_startgui(const char *guidir)
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 @@ int sys_startgui(const char *guidir)
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 @@ int sys_startgui(const char *guidir)
}
}
- seteuid(getuid()); /* lose setuid priveliges */
+ setuid(getuid()); /* lose setuid priveliges */
#endif /* __linux__ */
#ifdef MSW