From: Christopher Allen Wing Date: Mon, 31 Jul 2006 17:36:32 +0000 (+0000) Subject: STABLE14-bucoord-64-bit-cleanup-20060701 X-Git-Tag: openafs-stable-1_4_2b3~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=64ba11890f7ba352604b0d807bf0f26c7992dc82;p=packages%2Fo%2Fopenafs.git 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) --- diff --git a/src/bucoord/commands.c b/src/bucoord/commands.c index 9f8858355..78c36bb6f 100644 --- a/src/bucoord/commands.c +++ b/src/bucoord/commands.c @@ -1564,7 +1564,7 @@ bc_VolsetRestoreCmd(as, arock) /* Perform the call to start the restore */ code = bc_StartDmpRst(bc_globalConfig, "disk", "restore", volsToRestore, - /*destserver */ 0, /*destpartition */ 0, fromDate, + /*destserver */ NULL, /*destpartition */ 0, fromDate, newExt, oldFlag, /*parentDump */ 0, /*dumpLevel */ 0, bc_Restorer, ports, portCount,