aboutsummaryrefslogtreecommitdiff
path: root/audio/arts
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2006-06-09 16:07:01 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2006-06-09 16:07:01 +0000
commit869f68a326a7b15a2c6b7d6a101abd549628dbb9 (patch)
tree81be0b5d569b3e68d240cb86916e5bc904299064 /audio/arts
parentce1c89634da7c166a238248199278996245b7eb3 (diff)
downloadports-869f68a326a7b15a2c6b7d6a101abd549628dbb9.tar.gz
ports-869f68a326a7b15a2c6b7d6a101abd549628dbb9.zip
Notes
Diffstat (limited to 'audio/arts')
-rw-r--r--audio/arts/Makefile1
-rw-r--r--audio/arts/files/patch-arts-1.2.x33
2 files changed, 34 insertions, 0 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index a2a6a6fc6be1..aacf417235bc 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -8,6 +8,7 @@
PORTNAME= arts
PORTVERSION= 1.5.3
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= audio kde
MASTER_SITES= ${MASTER_SITE_KDE}
diff --git a/audio/arts/files/patch-arts-1.2.x b/audio/arts/files/patch-arts-1.2.x
new file mode 100644
index 000000000000..377fecb704c1
--- /dev/null
+++ b/audio/arts/files/patch-arts-1.2.x
@@ -0,0 +1,33 @@
+Index: soundserver/artswrapper.c
+===================================================================
+--- soundserver/artswrapper.c (revision 546970)
++++ soundserver/artswrapper.c (working copy)
+@@ -95,6 +95,10 @@ int main(int argc, char **argv)
+ #else
+ setreuid(-1, getuid());
+ #endif
++ if (geteuid() != getuid()) {
++ perror("setuid()");
++ return 2;
++ }
+ }
+
+ if(argc == 0)
+Index: soundserver/crashhandler.cc
+===================================================================
+--- soundserver/crashhandler.cc (revision 546970)
++++ soundserver/crashhandler.cc (working copy)
+@@ -196,7 +196,12 @@ CrashHandler::defaultCrashHandler (int s
+ argv[i++] = NULL;
+
+ setgid(getgid());
+- setuid(getuid());
++ if (getuid() != geteuid())
++ setuid(getuid());
++ if (getuid() != geteuid()) {
++ perror("setuid()");
++ exit(255);
++ }
+
+ execvp(crashApp, argv);
+