Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2004 09:24:07 -0400 (EDT)
From:      Dan Langille <dan@langille.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Lars.Koeller@Uni-Bielefeld.DE
Subject:   ports/69565: [PATCH] - include important patch from author
Message-ID:  <20040725132407.8184C3E54@xeon.unixathome.org>
Resent-Message-ID: <200407251330.i6PDUIfk064090@freefall.freebsd.org>

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

>Number:         69565
>Category:       ports
>Synopsis:       [PATCH] - include important patch from author
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 25 13:30:17 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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