summaryrefslogtreecommitdiff
path: root/ext/File
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-22 19:58:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-22 19:58:34 +0000
commitc44feae73a9ab8dd587fbb4994f81bc46dd2f1d9 (patch)
tree4028f54882062f6a3ec95b53e724dfdc8b5c5eba /ext/File
parent68f2247529d94c7f30b8fb3fdfab3ea64757a395 (diff)
downloadperl-c44feae73a9ab8dd587fbb4994f81bc46dd2f1d9.tar.gz
getpwuid() might succeed but that's no guarantee
that the $home will be defined. p4raw-id: //depot/perl@12588
Diffstat (limited to 'ext/File')
-rwxr-xr-xext/File/Glob/t/basic.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/File/Glob/t/basic.t b/ext/File/Glob/t/basic.t
index 65fa36a6b1..c6fc21739b 100755
--- a/ext/File/Glob/t/basic.t
+++ b/ext/File/Glob/t/basic.t
@@ -50,7 +50,7 @@ if ($^O ne 'MSWin32' && $^O ne 'NetWare' && $^O ne 'VMS' && $^O ne 'os2') {
1;
} and do {
@a = bsd_glob("~$name", GLOB_TILDE);
- if (scalar(@a) != 1 || $a[0] ne $home || GLOB_ERROR) {
+ if (defined $home && (scalar(@a) != 1 || $a[0] ne $home || GLOB_ERROR)) {
print "not ";
}
};