Bug 170692 - sysutils/usermin: Incomplete perl module dependency causes password not to update correctly
Summary: sysutils/usermin: Incomplete perl module dependency causes password not to up...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 07:30 UTC by Loganaden Velvindron
Modified: 2012-08-17 13:10 UTC (History)
0 users

See Also:


Attachments
file.diff (418 bytes, patch)
2012-08-17 07:30 UTC, Loganaden Velvindron
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Loganaden Velvindron 2012-08-17 07:30:09 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-17 10:51:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->olgeni

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-08-17 13:05:55 UTC
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"
Comment 3 Jimmy Olgeni freebsd_committer freebsd_triage 2012-08-17 13:06:28 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-08-17 13:06:30 UTC
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"