mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
kill kdesu_pty; port rest of kdesu to kpty. untested.
svn path=/trunk/KDE/kdebase/apps/; revision=677308
This commit is contained in:
parent
86f7b89a1e
commit
999b6f0659
2 changed files with 10 additions and 10 deletions
|
@ -61,8 +61,8 @@ int ChfnProcess::ConverseChfn(const char *pass)
|
|||
if ( line.contains( "Password: " )/*isPrompt( line, "password" )*/ )
|
||||
{
|
||||
WaitSlave();
|
||||
write(m_Fd, pass, strlen(pass));
|
||||
write(m_Fd, "\n", 1);
|
||||
write(fd(), pass, strlen(pass));
|
||||
write(fd(), "\n", 1);
|
||||
}
|
||||
|
||||
line = readLine(); // Let's see what the outcome was
|
||||
|
|
|
@ -136,8 +136,8 @@ int PasswdProcess::ConversePasswd(const char *oldpass, const char *newpass,
|
|||
if (isPrompt(line, "password"))
|
||||
{
|
||||
WaitSlave();
|
||||
write(m_Fd, oldpass, strlen(oldpass));
|
||||
write(m_Fd, "\n", 1);
|
||||
write(fd(), oldpass, strlen(oldpass));
|
||||
write(fd(), "\n", 1);
|
||||
state++;
|
||||
break;
|
||||
}
|
||||
|
@ -180,8 +180,8 @@ int PasswdProcess::ConversePasswd(const char *oldpass, const char *newpass,
|
|||
return 0;
|
||||
}
|
||||
WaitSlave();
|
||||
write(m_Fd, newpass, strlen(newpass));
|
||||
write(m_Fd, "\n", 1);
|
||||
write(fd(), newpass, strlen(newpass));
|
||||
write(fd(), "\n", 1);
|
||||
state++;
|
||||
break;
|
||||
|
||||
|
@ -190,8 +190,8 @@ int PasswdProcess::ConversePasswd(const char *oldpass, const char *newpass,
|
|||
if (isPrompt(line, "re"))
|
||||
{
|
||||
WaitSlave();
|
||||
write(m_Fd, newpass, strlen(newpass));
|
||||
write(m_Fd, "\n", 1);
|
||||
write(fd(), newpass, strlen(newpass));
|
||||
write(fd(), "\n", 1);
|
||||
state += 2;
|
||||
break;
|
||||
}
|
||||
|
@ -207,8 +207,8 @@ int PasswdProcess::ConversePasswd(const char *oldpass, const char *newpass,
|
|||
if (isPrompt(line, "re"))
|
||||
{
|
||||
WaitSlave();
|
||||
write(m_Fd, newpass, strlen(newpass));
|
||||
write(m_Fd, "\n", 1);
|
||||
write(fd(), newpass, strlen(newpass));
|
||||
write(fd(), "\n", 1);
|
||||
state++;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue