[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] hostname for locking is sometimes too long
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] hostname for locking is sometimes too long |
Date: |
Wed, 4 Nov 2015 16:29:11 -0500 |
On 04 Nov 2015 21:53, Benno Schulenberg wrote:
> On Ubuntu 15.10 we have a serious bug report:
> https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1509081
>
> Apparently some hostnames are longer than 31 characters,
> and gethostname() returns -1 and ENAMETOOLONG.
>
> I think that when this latter error is returned, then
> write_lockfile() should ignore the -1 return value,
> null-terminate myhostname, and continue. Right?
sounds fine. could also increase the 32 to 256.
-mike
signature.asc
Description: Digital signature