1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

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>
This commit is contained in:
Will Andrews 2002-01-07 02:08:04 +00:00
parent dfe080913d
commit 242583e165
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52677
4 changed files with 28 additions and 0 deletions

View File

@ -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

View File

@ -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] != '*')

View File

@ -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

View File

@ -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