Skip Menu |

This queue is for tickets about the File-BaseDir CPAN distribution.

Report information
The Basics
Id: 127138
Status: open
Priority: 0/
Queue: File-BaseDir

People
Owner: Nobody in particular
Requestors: trichmond [...] proofpoint.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: More complete check for $home
Date: Tue, 18 Sep 2018 16:12:31 +0000
To: "bug-File-BaseDir [...] rt.cpan.org" <bug-File-BaseDir [...] rt.cpan.org>
From: Todd Richmond <trichmond [...] proofpoint.com>
When $ENV{HOME} is not set, fall back to the user’s entry from /etc/passwd on non-MSWin32 systems. This will allow applications that don’t run under a shell that set HOME to still use their own values rather than root’s my $home = $ENV{HOME}; $home =(getpwuid($>))[7] unless ($home || $^O eq ‘MSWin32’); unless ($home) { …
Please note that this module has been put up for adoption. I'm not able to maintain it anymore for several reasons, but bug reports are still coming to me.