From dan@xeon.unixathome.org  Sun Jul 25 13:24:08 2004
Return-Path: <dan@xeon.unixathome.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ADE3116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2004 13:24:08 +0000 (GMT)
Received: from xeon.unixathome.org (bast.unixathome.org [66.11.174.150])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7C843D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2004 13:24:08 +0000 (GMT)
	(envelope-from dan@xeon.unixathome.org)
Received: by xeon.unixathome.org (Postfix, from userid 1000)
	id 8184C3E54; Sun, 25 Jul 2004 09:24:07 -0400 (EDT)
Message-Id: <20040725132407.8184C3E54@xeon.unixathome.org>
Date: Sun, 25 Jul 2004 09:24:07 -0400 (EDT)
From: Dan Langille <dan@langille.org>
Reply-To: Dan Langille <dan@langille.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dan@langille.org, Lars.Koeller@Uni-Bielefeld.DE
Subject: [PATCH] - include important patch from author
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69565
>Category:       ports
>Synopsis:       [PATCH] - include important patch from author
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 25 13:30:17 GMT 2004
>Closed-Date:    Sun Jul 25 14:09:20 GMT 2004
>Last-Modified:  Sun Jul 25 14:09:20 GMT 2004
>Originator:     Dan Langille
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.unixathome.org 4.9-STABLE FreeBSD 4.9-STABLE #2: Wed Mar 3 08:16:24 EST 2004 dan@polo.unixathome.org:/usr/obj/usr/src/sys/XEON i386


	
>Description:
	
As found at http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=0000070 :

Recently, several users discovered that JobId's could be listed out of
order during while using the restore command in the console. This turns
out to be a bug that could cause older versions of files saved during
Incremental backups to be restored.  

The attached patch solves this problem.

>How-To-Repeat:
	
>Fix:

	

--- bacula-patch begins here ---
diff -ruN /usr/ports/sysutils/bacula/files/patch-src-dird-sql_cmds.c /home/dan/src/bacula/bacula-port/files/patch-src-dird-sql_cmds.c
--- /usr/ports/sysutils/bacula/files/patch-src-dird-sql_cmds.c	Wed Dec 31 19:00:00 1969
+++ /home/dan/src/bacula/bacula-port/files/patch-src-dird-sql_cmds.c	Sun Jul 25 09:16:32 2004
@@ -0,0 +1,11 @@
+diff -u -r1.22.2.7.2.3 sql_cmds.c
+--- src/dird/sql_cmds.c 7 Feb 2004 17:27:11 -00001.22.2.7.2.3
++++ src/dird/sql_cmds.c 23 Jul 2004 09:55:35 -0000
+@@ -261,7 +261,7 @@
+    "ORDER BY StartTime ASC";
+ 
+ 
+-char *uar_sel_jobid_temp = "SELECT JobId FROM temp";
++char *uar_sel_jobid_temp = "SELECT JobId FROM temp ORDER BY StartTime ASC";
+ 
+ char *uar_sel_all_temp1 = "SELECT * FROM temp1";
--- bacula-patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: lkoeller 
State-Changed-When: Sun Jul 25 14:08:39 GMT 2004 
State-Changed-Why:  
o) Fix included into bacula port 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69565 
>Unformatted:
