From kde-core-devel Thu Nov 13 09:23:28 2003 From: Waldo Bastian Date: Thu, 13 Nov 2003 09:23:28 +0000 To: kde-core-devel Subject: Re: [PATCH] kdesu for FreeBSD non-wheel users X-MARC-Message: https://marc.info/?l=kde-core-devel&m=106871549104702 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu November 13 2003 05:01, Oswald Buddenhagen wrote: > On Wed, Nov 12, 2003 at 10:45:47PM -0500, Dawit Alemayehu wrote: > > > 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 > > word characters Ah, *hm*, well, the code seems to implement \s instead of \w: // Match "Password: " with the regex ^[^:]+:[\w]*$. for (i=0,j=0,colon=0; i