summaryrefslogtreecommitdiff
path: root/t/io/fs.t
diff options
context:
space:
mode:
Diffstat (limited to 't/io/fs.t')
-rw-r--r--t/io/fs.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index 705523cffe..d298b29509 100644
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -13,7 +13,7 @@ chdir './tmp';
umask(022);
-if (umask(0) == 022) {print "ok 1\n";} else {print "not ok 1\n";}
+if ((umask(0)&0777) == 022) {print "ok 1\n";} else {print "not ok 1\n";}
open(fh,'>x') || die "Can't create x";
close(fh);
open(fh,'>a') || die "Can't create a";