Daniel Shaw (daniel@afrinic.net) discovered that usermin couldn't find a dependency to change the password, in change password menu. The dependancy is p5-IO-Tty which is called by changepasswd.cgi. sub pty_process_exec { local ($cmd, $uid, $gid) = @_; if (&is_readonly_mode()) { # When in readonly mode, don't run the command $cmd = "/bin/true"; } &webmin_debug_log('CMD', "cmd=$cmd uid=$uid gid=$gid") if ($gconfig{'debug_what_cmd'}); eval "use IO::Pty"; if (!$@) { # Use the IO::Pty perl module if installed local $ptyfh = new IO::Pty; if (!$ptyfh) { pty_process_exec is later called in changepasswd.cgi: ($fh, $fpid) = &proc::pty_process_exec( $passwd_cmd, $uinfo[2], $uinfo[3]); Fix: A workaround is to install p5-IO-Tty manually, and then the password is changed correctly and the webpage confirms the change. Patch attached with submission follows: How-To-Repeat: Go to change password, and change an existing user password. Nothing is displayed on the web page & the password isn't updated silently either.
Responsible Changed From-To: freebsd-ports-bugs->olgeni Over to maintainer (via the GNATS Auto Assign Tool)
Author: olgeni Date: Fri Aug 17 12:05:45 2012 New Revision: 302678 URL: http://svn.freebsd.org/changeset/ports/302678 Log: Add missing dependency on p5-IO-Tty. PR: ports/170692 Submitted by: Loganaden Velvindron <logan afrinic.net> Modified: head/sysutils/usermin/Makefile (contents, props changed) Modified: head/sysutils/usermin/Makefile ============================================================================== --- head/sysutils/usermin/Makefile Fri Aug 17 11:25:05 2012 (r302677) +++ head/sysutils/usermin/Makefile Fri Aug 17 12:05:45 2012 (r302678) @@ -7,6 +7,7 @@ PORTNAME= usermin PORTVERSION= 1.510 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.webmin.com/uupdates/:up \ SF/webadmin/${PORTNAME}/${PORTVERSION}:sf \ @@ -19,6 +20,7 @@ MAINTAINER= olgeni@FreeBSD.org COMMENT= Web-based interface for performing some user tasks RUN_DEPENDS= p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay \ + p5-IO-Tty>=0:${PORTSDIR}/devel/p5-IO-Tty \ p5-Authen-PAM>=0:${PORTSDIR}/security/p5-Authen-PAM FETCH_CMD?= /usr/bin/fetch -pRr _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!
Author: olgeni Date: Fri Aug 17 12:06:21 2012 New Revision: 302679 URL: http://svn.freebsd.org/changeset/ports/302679 Log: Add missing dependency on p5-IO-Tty. PR: ports/170692 Submitted by: Loganaden Velvindron <logan afrinic.net> Modified: head/sysutils/webmin/Makefile (contents, props changed) Modified: head/sysutils/webmin/Makefile ============================================================================== --- head/sysutils/webmin/Makefile Fri Aug 17 12:05:45 2012 (r302678) +++ head/sysutils/webmin/Makefile Fri Aug 17 12:06:21 2012 (r302679) @@ -7,6 +7,7 @@ PORTNAME= webmin PORTVERSION= 1.590 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://download.webmin.com/updates/:up \ SF/webadmin/${PORTNAME}/${PORTVERSION}:sf \ @@ -19,6 +20,7 @@ MAINTAINER= olgeni@FreeBSD.org COMMENT= Web-based interface for system administration for Unix RUN_DEPENDS= p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay \ + p5-IO-Tty>=0:${PORTSDIR}/devel/p5-IO-Tty \ p5-Authen-PAM>=0:${PORTSDIR}/security/p5-Authen-PAM USE_PERL5= yes _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"