summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-01-10 16:25:24 +0000
committermillert <millert@openbsd.org>1999-01-10 16:25:24 +0000
commitb8e6700d9e0045e311b543fd92754bf27168b3f6 (patch)
treedabdb9c437d6b148a3cd4048d7d4dc76a31a6427
parentGeneralize cpu_set_kpc to take any kind of arg; mostly from NetBSD (diff)
downloadwireguard-openbsd-b8e6700d9e0045e311b543fd92754bf27168b3f6.tar.xz
wireguard-openbsd-b8e6700d9e0045e311b543fd92754bf27168b3f6.zip
missed in update
-rw-r--r--bin/ksh/tests/th3
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)) {