]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-bucoord-64-bit-cleanup-20060701
authorChristopher Allen Wing <wingc@engin.umich.edu>
Mon, 31 Jul 2006 17:36:32 +0000 (17:36 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 17:36:32 +0000 (17:36 +0000)
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

index 9f8858355006b49b865781ac1d5f39b275bc1856..78c36bb6f05211264d0c4fded7e543c35351b20a 100644 (file)
@@ -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,