Correct flags for OSX
authorJamie Cameron <jcameron@webmin.com>
Mon, 11 Feb 2008 18:32:18 +0000 (18:32 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 11 Feb 2008 18:32:18 +0000 (18:32 +0000)
fsdump/freebsd-lib.pl
fsdump/ftp.pl

index 9b1e1a3..ab84c82 100644 (file)
@@ -251,6 +251,7 @@ else {
 
 &system_logged("sync");
 sleep(1);
+$ENV{'DUMP_PASSWORD'} = $_[0]->{'pass'};
 local $got = &run_ssh_command($cmd, $fh, $_[2], $_[0]->{'pass'});
 if ($_[0]->{'multi'} && $_[0]->{'fs'} eq 'tar') {
        # Run multi-file switch command one last time
@@ -449,6 +450,7 @@ return $cmd;
 sub restore_backup
 {
 &additional_log('exec', undef, $_[1]);
+$ENV{'DUMP_PASSWORD'} = $in{'pass'};
 
 # Need to supply prompts
 &foreign_require("proc", "proc-lib.pl");
index fb4bf5e..8bbfb3e 100755 (executable)
@@ -49,7 +49,7 @@ while(1) {
 
                # Work out what we are doing
                $mode = 0;
-               if ($perms & 0100 ||
+               if (($perms & 0100) || ($perms & 01000) ||
                    (($perms & 01) || ($perms & 02)) && $touched) {
                        # Writing new file
                        $mode = 1;