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

List:       kde-core-devel
Subject:    Re: kdesu
From:       Simon Hausmann <sh () caldera ! de>
Date:       2000-08-21 12:25:10
[Download RAW message or body]



On Sat, 19 Aug 2000, Marcus Meissner wrote:

> On Sat, Aug 19, 2000 at 01:50:52AM +0200, Michael Matz wrote:
> > Hi,
> > 
> > On Fri, 18 Aug 2000, Waldo Bastian wrote:
> > > kdesu (kdelibs): ERROR: [su.cpp:80] Su PATH = /bin/su
> > > kdesu (kdelibs): [kdesu_pty.cpp:91] HAVE_OPENPTY
> > > kdesu (kdelibs): [kdesu_pty.cpp:178] grantpt: ptyname = '/dev/pts/5'
> > 
> > Then ptyname is initialized wrongly. Does the attached patch fix the
> > problem for you (I can't test the functionality right now)? (one should
> > first not rely on the name argument of openpty, and second not set both
> > master and slave to the same name)
> > 
> > > Translated into english:
> > > 
> > > opentty() succeeds and returns "/dev/pts/5". I don't think we need to call 
> > 
> > openpty()
> > 
> > > konsole_grant_pty in this case but it is done anyway, and there it thinks 
> > > that /dev/ptmx is the tty which it refuses to chown/chmod. (It better not)
> > 
> > ptyname is checked for "/dev/ptmx" in grantpt(), only that it is wrongly
> > initialized in PTY::getpt().
> 
> > 
> > Ciao,
> > Michael.
> 
> The real problem was a missing configure check in kdesu/configure.in.in...
> I thought I fixed that on Thursday?

I can confirm that. I had exactly the same problem and after his fix it
worked for me.

Bye,
 Simon

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

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