`port edit`, local/console vs. remote use

Brandon Allbery allbery.b at gmail.com
Tue Dec 6 18:13:18 CET 2016


On Tue, Dec 6, 2016 at 6:08 PM, René J.V. Bertin <rjvbertin at gmail.com>
wrote:

> A long time ago I wrote an application that returns the name (or IP) of
> the host you're logged in from. I don't think I ever got it to work
> reliably on modern Linux and OS X machines


Unless things are configured to log to wtmp by IP address, these stopped
working when hostnames got too long. OS doesn't matter. (wtmp has to set a
length limit, and good luck reconstructing from a prefix. It's been tried
many times and is pretty much impossible.)

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20161206/128294ec/attachment.html>


More information about the macports-dev mailing list