Skip Menu |

This queue is for tickets about the Audio-Nama CPAN distribution.

Report information
The Basics
Id: 60024
Status: resolved
Priority: 0/
Queue: Audio-Nama

People
Owner: Nobody in particular
Requestors: ANSGAR [...] cpan.org
Cc:
AdminCc:

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



Subject: Audio::Nama::Assign: tilde expansion makes wrong assumptions
Date: Tue, 03 Aug 2010 14:10:36 +0900
To: bug-Audio-Nama [...] rt.cpan.org
From: Ansgar Burchardt <ANSGAR [...] cpan.org>
Hi, while I updated the Debian package for Audio::Nama, I noticed that the expand_tilde function in Audio::Nama::Assign makes wrong assumptions about the location of home directories. They are not required to be named /home/$user, but may be located anywhere. Please use getpwnam or File::HomeDir to locate the home directory instead. Regards, Ansgar
Subject: Re: [rt.cpan.org #60024] Audio::Nama::Assign: tilde expansion makes wrong assumptions
Date: Fri, 6 Aug 2010 10:45:49 -1000
To: Ansgar Burchardt via RT <bug-Audio-Nama [...] rt.cpan.org>
From: Joel Roth <joelz [...] pobox.com>
On Tue, Aug 03, 2010 at 01:10:47AM -0400, Ansgar Burchardt via RT wrote: Show quoted text
> Tue Aug 03 01:10:47 2010: Request 60024 was acted upon. > Transaction: Ticket created by ANSGAR > Queue: Audio-Nama > Subject: Audio::Nama::Assign: tilde expansion makes wrong assumptions > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ANSGAR@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=60024 > > > > Hi, > > while I updated the Debian package for Audio::Nama, I noticed that the > expand_tilde function in Audio::Nama::Assign makes wrong assumptions > about the location of home directories. They are not required to be > named /home/$user, but may be located anywhere. > > Please use getpwnam or File::HomeDir to locate the home directory > instead.
Ansgar, Thank you for this report! For Linux and OSX, I find that $HOME (or $ENV{HOME} ) provides this information. Is there any reason to prefer getpwnam or File::HomeDir for Unixlike platforms? Regards, Joel Show quoted text
> Regards, > Ansgar >
-- Joel Roth
This bug is fixed in version 1.064
Fixed in version 1.064