[PATCH] kdesu for FreeBSD non-wheel users

Oswald Buddenhagen ossi at kde.org
Thu Nov 13 13:23:33 GMT 2003


On Thu, Nov 13, 2003 at 10:23:28AM +0100, Waldo Bastian wrote:
> Ah, *hm*, well, the code seems to implement \s instead of \w:
> 
heh, i didn't expect the regex to be only a comment ... :))

> So I still fail to see how the code would match
> 	"su: you are not allowed to su root"
> 
it can't ... i think. this code is too clever for me. i think it would
be simpler to prove it to work right if the j++ was replaced by another
j = i; ... dunno.
in any case i'd be in favour of rewriting the code to match my regex. it
would be simpler in any case (starting from the end, match !'\n', '\s'*,
':'). :)

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




More information about the kde-core-devel mailing list