[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] hostname for locking is sometimes too long
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] hostname for locking is sometimes too long |
Date: |
Wed, 04 Nov 2015 21:53:31 +0100 |
Hi,
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?
Benno
--
http://www.fastmail.com - Or how I learned to stop worrying and
love email again
- [Nano-devel] hostname for locking is sometimes too long,
Benno Schulenberg <=