]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-bucoord-64-bit-cleanup-20060701
authorChristopher Allen Wing <wingc@engin.umich.edu>
Sat, 1 Jul 2006 16:24:35 +0000 (16:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 1 Jul 2006 16:24:35 +0000 (16:24 +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 b7ae046e34039b9b3b36c0fd6e284b9bee0ffd59..9f8858355006b49b865781ac1d5f39b275bc1856 100644 (file)
@@ -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,