diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-10 16:25:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-10 16:25:25 +0000 |
commit | 165c568427c3002d83a1ebc6d490b0c9f4936266 (patch) | |
tree | 340868db0459bfd3fffb64b4c3038a3a758f99f2 /bin | |
parent | 771be10e033278ba3fe87b2fad592c9852b3e663 (diff) |
missed in update
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/tests/th | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ksh/tests/th b/bin/ksh/tests/th index c2b821f9239..eb9c6848c93 100644 --- a/bin/ksh/tests/th +++ b/bin/ksh/tests/th @@ -364,6 +364,7 @@ run_test $len = index($rest, $c, 1) - 1; $name = substr($rest, 1, $len); $rest = substr($rest, 2 + $len); + $perm = oct($perm) if $perm =~ /^\d+$/; if ($type eq 'file') { return undef if !&write_file($name, $rest); if (!chmod($perm, $name)) { @@ -550,7 +551,7 @@ scrub_dir local($file); if (!opendir(DIR, $dir)) { - print STDERR "$prog: couldn't open direcotry $dir - $!\n"; + print STDERR "$prog: couldn't open directory $dir - $!\n"; return undef; } while ($file = readdir(DIR)) { |