Bug 171724 - [Maintainer update] sysutils/qjail bug fix
Summary: [Maintainer update] sysutils/qjail bug fix
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: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 22:50 UTC by qjail
Modified: 2012-09-18 18:50 UTC (History)
0 users

See Also:


Attachments
file.diff (783 bytes, patch)
2012-09-17 22:50 UTC, qjail
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description qjail 2012-09-17 22:50:05 UTC
User reported bug about doing 'qjail create -a jail-aaa jail-bbb 10.0.10.5'
-a option means create new jail from archive file of jail-aaa. 
Search of /usr/jails/archive selected incorrect archive file. If archive files named jail-aaa, jail-aaa-bbb, jail-aaa-bbb-ccc were present jail-aaa-bbb-ccc was always selected incorrectly. This same logic was also used for 'qjail restore jail-aaa', but that logic had check for this condition that told user to use full archive name that included the date stamp archive was created. Fixed logic in both functions.

Fix: Patch attached with submission follows:
Comment 1 Chris Rees freebsd_committer freebsd_triage 2012-09-18 07:26:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

I'll take it.
Comment 2 Chris Rees freebsd_committer freebsd_triage 2012-09-18 18:45:09 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-09-18 18:45:09 UTC
Author: crees
Date: Tue Sep 18 17:44:47 2012
New Revision: 304449
URL: http://svn.freebsd.org/changeset/ports/304449

Log:
  Update to 1.6
  
  -a option means create new jail from archive file of jail-aaa.
  Search of /usr/jails/archive selected incorrect archive file.
  If archive files named jail-aaa, jail-aaa-bbb, jail-aaa-bbb-ccc were present
  jail-aaa-bbb-ccc was always selected incorrectly.
  This same logic was also used for 'qjail restore jail-aaa', but that logic
  had check for this condition that told user to use full archive name that
  included the date stamp archive was created.  Fixed logic in both functions.
  
  PR:		ports/171724
  Submitted by:	maintainer (Joe Barbish <qjail@a1poweruser.com>)

Modified:
  head/sysutils/qjail/Makefile
  head/sysutils/qjail/distinfo

Modified: head/sysutils/qjail/Makefile
==============================================================================
--- head/sysutils/qjail/Makefile	Tue Sep 18 17:32:48 2012	(r304448)
+++ head/sysutils/qjail/Makefile	Tue Sep 18 17:44:47 2012	(r304449)
@@ -5,7 +5,7 @@
 # $FreeBSD$
 
 PORTNAME=	qjail
-PORTVERSION=	1.5
+PORTVERSION=	1.6
 CATEGORIES=	sysutils
 MASTER_SITES=	SF/${PORTNAME}
 

Modified: head/sysutils/qjail/distinfo
==============================================================================
--- head/sysutils/qjail/distinfo	Tue Sep 18 17:32:48 2012	(r304448)
+++ head/sysutils/qjail/distinfo	Tue Sep 18 17:44:47 2012	(r304449)
@@ -1,2 +1,2 @@
-SHA256 (qjail-1.5.tar.bz2) = 9604e5e9fb35a69e775849a56a70b1a047dd1969fc259ed8e12f44183a1aa9da
-SIZE (qjail-1.5.tar.bz2) = 40691
+SHA256 (qjail-1.6.tar.bz2) = 53b6743ddf948a2ec6d0eacff23fda7a37f99cd570d54ed517011a560c5e15e9
+SIZE (qjail-1.6.tar.bz2) = 40745
_______________________________________________
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"