Skip Menu |

This queue is for tickets about the Sys-Hostname-Long CPAN distribution.

Report information
The Basics
Id: 28894
Status: open
Priority: 0/
Queue: Sys-Hostname-Long

People
Owner: Nobody in particular
Requestors: cpanbugs-20070819 [...] billmail.scconsult.com
Cc:
AdminCc:

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



Subject: Bogus argument for 'hostname' command
This piece of code breaks noisily on MacOS X because '--fqdn' is not a valid option for the 'hostname' command. ./5.8.6/Sys/Hostname/Long.pm:71: 'exec_hostname_fqdn' => { ./5.8.6/Sys/Hostname/Long.pm:72: 'title' => 'Execute "hostname --fqdn"', ./5.8.6/Sys/Hostname/Long.pm-73- 'description' => '', ./5.8.6/Sys/Hostname/Long.pm-74- 'exec' => sub { ./5.8.6/Sys/Hostname/Long.pm-75- # Skip for Solaris, and only run as non- root ./5.8.6/Sys/Hostname/Long.pm-76- my $tmp; ./5.8.6/Sys/Hostname/Long.pm-77- if ($< == 0) { ./5.8.6/Sys/Hostname/Long.pm:78: $tmp = `su nobody -c "hostname --fqdn"`; ./5.8.6/Sys/Hostname/Long.pm-79- } else { ./5.8.6/Sys/Hostname/Long.pm:80: $tmp = `hostname --fqdn`; ./5.8.6/Sys/Hostname/Long.pm-81- } ./5.8.6/Sys/Hostname/Long.pm-82- $tmp =~ tr/\0\r\n//d; ./5.8.6/Sys/Hostname/Long.pm-83- return $tmp; MacOS X should probably get treated like the BSD's, since 'hostname' without args returns the FQDN if the host has one configured, as does uname -n.
On Fri Aug 30 04:38:56 2013, MICHIELB wrote: Show quoted text
> I added a pull request here: https://github.com/scottp/sys-hostname- > long/pull/2
You mentioned via mail you were going to look at my pull requests and prepare a new release. Can you please look at the pulls and prepare a new release? As stated, if you no longer want to maintain the module I'd be glad taking over maintenance. My CPAN ID is MICHIELB and my github ID is mbeijen Thanks, Michiel