aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs2
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2002-01-07 02:08:04 +0000
committerWill Andrews <will@FreeBSD.org>2002-01-07 02:08:04 +0000
commit242583e16515ad7caf1d9d07de28f51281dd7820 (patch)
tree4a5cc8777da431f6398cf9ac6f070889064994d5 /x11/kdelibs2
parentdfe080913df03aa968636899b3748c7065e8b5b7 (diff)
downloadports-242583e16515ad7caf1d9d07de28f51281dd7820.tar.gz
ports-242583e16515ad7caf1d9d07de28f51281dd7820.zip
Fix obscure kdesu bug where it doesn't pass the user to su to. This may
not be the correct fix -- discussion on kde-core-devel@kde.org ensuing. Bump PORTREVISION to accomodate this important fix. PR: 32549 Reported by: Kenneth Culver <culverk@wam.umd.edu> Fixed with help of: Ryan Cumming <bodnar42@phalynx.dhs.org>
Notes
Notes: svn path=/head/; revision=52677
Diffstat (limited to 'x11/kdelibs2')
-rw-r--r--x11/kdelibs2/Makefile1
-rw-r--r--x11/kdelibs2/files/patch-su.cpp25
2 files changed, 26 insertions, 0 deletions
diff --git a/x11/kdelibs2/Makefile b/x11/kdelibs2/Makefile
index 535555273fed..93ee6b9b10f2 100644
--- a/x11/kdelibs2/Makefile
+++ b/x11/kdelibs2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= kdelibs
PORTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
diff --git a/x11/kdelibs2/files/patch-su.cpp b/x11/kdelibs2/files/patch-su.cpp
new file mode 100644
index 000000000000..bc5440cb692d
--- /dev/null
+++ b/x11/kdelibs2/files/patch-su.cpp
@@ -0,0 +1,25 @@
+--- kdesu/su.cpp Sun Jan 6 20:22:55 2002
++++ kdesu/su.cpp.new Sun Jan 6 20:22:48 2002
+@@ -74,6 +74,7 @@
+ setTerminal(true);
+
+ QCStringList args;
++ args+="-";
+ if ((m_Scheduler != SchedNormal) || (m_Priority > 50))
+ args += "root";
+ else
+@@ -185,12 +186,12 @@
+ break;
+
+ case 1:
+- if (line.stripWhiteSpace().isEmpty())
++ QCString s=line.stripWhiteSpace();
++ if (s.isEmpty())
+ {
+ state++;
+ break;
+ }
+- QCString s=line.stripWhiteSpace();
+ for (i=0; i<s.length(); i++)
+ {
+ if (s[i] != '*')