[PATCH] kdesu for FreeBSD non-wheel users
Dawit A.
adawit at kde.org
Thu Nov 13 03:45:47 GMT 2003
On Wednesday 12 November 2003 11:19, Waldo Bastian wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed November 12 2003 16:10, Oswald Buddenhagen wrote:
> > i think that's wrong. potentially every system can have a wheel group,
> > particularily those which use pam can be trivially configured to do so.
> > instead, the prompt recognizion should be improved. i mean, a prompt is
> > really not that hard to recognize: it ends with a colon (minus trailing
> > whitespace), has no trailing newline, and the program hangs afterwards
> > (i.e., does not exit or output something else).
>
> Yes, I agree.
>
> Btw, the comment in su.cpp says:
> // Match "Password: " with the regex ^[^:]+:[\w]*$.
>
> I actually fail to see how
> "su: you are not allowed to su root"
> would match that.
Why would it not ? ? To me the regexp says match anything that starts with one
or more characters other than a colon, followed by a colon, followed by zero
or more words (letter, number or _) and ending with any character including a
\n, no ?
--
Regards,
Dawit A.
"Preach what you practice, practice what you preach"
More information about the kde-core-devel
mailing list