[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] kdesu for FreeBSD non-wheel users
From:       Adriaan de Groot <adridg () cs ! kun ! nl>
Date:       2003-11-13 10:56:57
[Download RAW message or body]

On Wednesday 12 November 2003 17:19, Waldo Bastian 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.

That message is written out in two parts (ie. there are two write(2) calls): 
"su: " and "you .." Depending on the relative timing between the su process 
and kdesu, those two chunks may be read separately, or as one chunk. If they 
are read separately, then "su: " matches the regexp and kdesu assumes it's a 
password prompt.

Anyway, back to the ol' drawing board.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic