diff options
author | will <will@FreeBSD.org> | 2002-01-07 10:08:04 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2002-01-07 10:08:04 +0800 |
commit | 027938631a4b667f68c5563c65efcfa69001a2e1 (patch) | |
tree | 2db93f4ab284ddeab89eaf88c5691bb8ca484bd5 /x11/kdelibs2 | |
parent | 66e6690248ce12cfa97925b74595f6cd6eeb73b6 (diff) | |
download | freebsd-ports-gnome-027938631a4b667f68c5563c65efcfa69001a2e1.tar.gz freebsd-ports-gnome-027938631a4b667f68c5563c65efcfa69001a2e1.tar.zst freebsd-ports-gnome-027938631a4b667f68c5563c65efcfa69001a2e1.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>
Diffstat (limited to 'x11/kdelibs2')
-rw-r--r-- | x11/kdelibs2/Makefile | 1 | ||||
-rw-r--r-- | x11/kdelibs2/files/patch-su.cpp | 25 |
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] != '*') |