do_pwchange() is broken on SCO UnixWare 7

Darren Tucker dtucker at
Mon Dec 6 13:47:49 EST 2004

Mike Thompson wrote:
> The do_pwchange() function in session.c needs to pass the username as an
> argument to the passwd command. Without it, passwd always fails with
> something like "passwd: unknown user" as if its getting a blank user
> arg. It's strange but so are many other things in SCO, which BTW was NOT
> my OS of choice :(
> To make it work I simply changed line 1317 to this:
> execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name, (char*)NULL);

Does the attached patch fix it properly?  (Note: you will need to run 
"autoreconf" to rebuild configure after applying the patch, the rerun 
./configure && make).

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openssh-sco-passwd.patch

More information about the openssh-unix-dev mailing list