From e631787fb7376773cc27b28ec973e1646ab3dcd0 Mon Sep 17 00:00:00 2001 From: Christopher Allen Wing Date: Sat, 1 Jul 2006 16:24:35 +0000 Subject: [PATCH] STABLE14-bucoord-64-bit-cleanup-20060701 However, in bucoord/commands.c, bc_VolRestoreCmd(), bc_DiskRestoreCmd(), bc_VolsetRestoreCmd(), and bc_DumpCmd() were passing '0' as arguments instead of NULL. Because there is no prototype for bc_StartDmpRst() this results in a crash on 64-bit Linux. (when running 'volrestore' from an interactive backup session) --- src/bucoord/commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bucoord/commands.c b/src/bucoord/commands.c index b7ae046e3..9f8858355 100644 --- a/src/bucoord/commands.c +++ b/src/bucoord/commands.c @@ -1243,7 +1243,7 @@ bc_VolRestoreCmd(as, arock) &destServ, destPartition, fromDate, newExt, oldFlag, /*parentDump */ 0, /*dumpLevel */ 0, bc_Restorer, ports, portCount, - /*dumpSched */ 0, /*append */ 0, dontExecute); + /*dumpSched */ NULL, /*append */ 0, dontExecute); if (code) com_err(whoami, code, "; Failed to queue restore"); @@ -1406,7 +1406,7 @@ bc_DiskRestoreCmd(as, arock) &destServ, destPartition, fromDate, newExt, oldFlag, /*parentDump */ 0, /*dumpLevel */ 0, bc_Restorer, ports, portCount, - /*dumpSched */ 0, /*append */ 0, dontExecute); + /*dumpSched */ NULL, /*append */ 0, dontExecute); if (code) com_err(whoami, code, "; Failed to queue restore"); @@ -1568,7 +1568,7 @@ bc_VolsetRestoreCmd(as, arock) newExt, oldFlag, /*parentDump */ 0, /*dumpLevel */ 0, bc_Restorer, ports, portCount, - /*dumpSched */ 0, /*append */ 0, dontExecute); + /*dumpSched */ NULL, /*append */ 0, dontExecute); if (code) com_err(whoami, code, "; Failed to queue restore"); @@ -1962,7 +1962,7 @@ bc_DumpCmd(as, arock) return (0); code = bc_StartDmpRst(bc_globalConfig, dumpPath, vsName, volsToDump, - /*destServer */ 0, /*destPartition */ 0, + /*destServer */ NULL, /*destPartition */ 0, /*fromDate */ 0, /*newExt */ NULL, /*oldFlag */ 0, parent, level, bc_Dumper, portp, /*portCount */ 1, -- 2.39.5