Hi,

This patch makes the following command working:

$ RSH=ssh dump -0au -f remote:dump.0 /

even if dump.0 doesn't already exists on remote. Note: i cannot test
this patch on st(4) device.

Index: tape.c
===================================================================
RCS file: /cvs/src/sbin/dump/tape.c,v
retrieving revision 1.31
diff -u -p -r1.31 tape.c
--- tape.c      27 Oct 2009 23:59:32 -0000      1.31
+++ tape.c      25 Aug 2011 12:31:36 -0000
@@ -649,7 +649,7 @@ restore_check_point:
                        msg("Dumping volume %d on %s\n", tapeno, tape);
                }
 #ifdef RDUMP
-               while ((tapefd = (host ? rmtopen(tape, 2) :
+               while ((tapefd = (host ? rmtopen(tape, O_WRONLY|O_CREAT) :
                        pipeout ? 1 : open(tape, O_WRONLY|O_CREAT, 0666))) < 0)
 #else
                while ((tapefd = (pipeout ? 1 :

-- 
Manuel Giraud

Reply via email to