X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=backup%2Ffull;h=fffbb1ace16bb2dd2cbf30342e0bbf543ef9ac45;hp=d4e5fcacd226599b8881c9abc48d41b89b51ea15;hb=f0979352515324563d91f949eb123990dff35c36;hpb=4ab01705d43752de160d2580489f8c3ac4014921 diff --git a/backup/full b/backup/full index d4e5fca..fffbb1a 100755 --- a/backup/full +++ b/backup/full @@ -161,7 +161,7 @@ unlink 'this-md5sums'; print "Doing $doing ...\n" or die $!; unlink 'p'; -system 'mknod p p'; $? and die $?; +system 'mknod -m600 p p'; $? and die $?; setstatus "FAILED during dump"; @@ -204,12 +204,13 @@ for $tf (@fsys) { $ddcmd .= " conv=sync"; } - nexttapefile("full $prefix:$atf"); + nexttapefile("full $prefix:$atf_print"); # We can back up via dump or cpio or zafio $dumpin= '&FINDOW',$rstr."find $atf -xdev -noleaf -print0"; $dumpcmd= "cpio -Hustar -o0C$softblocksizebytes"; @@ -226,7 +227,7 @@ for $tf (@fsys) { execute("$rstr touch $fsidfile+new"); $dumpcmd= "tar Ccfl $atf - ."; } else { - die "unknown method $tm for $prefix:$atf\n"; + die "unknown method $tm for $prefix:$atf_print\n"; } # This is a funky way of doing a pipeline which pays attention # to the exit status of all the commands in the pipeline.