Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2004 01:32:56 +0900 (JST)
From:      TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69717: sysutils/jailuser: an unquoted slash within a matching operator
Message-ID:  <20040728163256.C0A8EF1849@prime.quad.dyndns.org>
Resent-Message-ID: <200407281640.i6SGeY5S078113@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69717
>Category:       ports
>Synopsis:       sysutils/jailuser: an unquoted slash within a matching operator
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 16:40:34 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     TAOKA Fumiyoshi
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
>Description:
	There is an unquoted slash within a matching operator in
	lib/arch/generic/functions.

>How-To-Repeat:

# mkjailenv /var/chrooted
Bareword found where operator expected at (eval 4) line 826, near "/^$INSTALL_DIR\/bin/jail"
	(Missing operator before jail?)
Unquoted string "jail" may clash with future reserved word at (eval 4) line 826.

mkjailenv
A component of Jail (version 1.9 for freebsd)
http://www.gsyc.inf.uc3m.es/~assman/jail/
Juan M. Casillas <assman@gsyc.inf.uc3m.es>

Making chrooted environment into /var/chrooted
	Doing preinstall()
	Doing special_devices()
	Doing gen_template_password()
	Doing postinstall()
Undefined subroutine &main::add_jail_to_shells called at /usr/local/bin/mkjailenv line 103.

>Fix:
diff -ur jailuser.orig/Makefile jailuser/Makefile
--- jailuser.orig/Makefile      Thu Jul 29 01:19:04 2004
+++ jailuser/Makefile   Thu Jul 29 01:19:17 2004
@@ -7,6 +7,7 @@

 PORTNAME=      jailuser
 PORTVERSION=   1.9
+PORTREVISION=  1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=    jail
diff -ur jailuser.orig/files/patch-functions jailuser/files/patch-functions
--- jailuser.orig/files/patch-functions Thu Jul 29 01:19:04 2004
+++ jailuser/files/patch-functions      Thu Jul 29 01:19:43 2004
@@ -17,7 +17,7 @@
     close(F);

     for $k (@elem) {
-!     if ($k =~ /^$INSTALL_DIR\/bin/jail/) {
+!     if ($k =~ /^$INSTALL_DIR\/bin\/jail/) {
         $found = 1;
         last;
       }
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040728163256.C0A8EF1849>