Package: nano
Version: 2.4.2-1
Severity: normal

Dear Maintainer,

* nano has a hardcoded limit of 31 characters long in the following code:
===

    char myhostname[32];
[...]
    if (gethostname(myhostname, 31) < 0) {
        statusbar(_("Couldn't determine hostname for lock file: %s"), 
strerror(errno));
        return -1;
    }

===

* When using a hostname longer than 31 characters nano fails to open an existing file with the message:
===

[ Couldn't determine hostname for lock file: File name too long ]

===

* The RFC states that any node (what's between the dots) from a FQDN can have 64 characters and the FQDN used in DNS can be max 253 bytes.


-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-42-pve (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nano depends on:
ii  libc6         2.19-22
ii  libncursesw5  6.0+20150810-1
ii  libtinfo5     6.0+20150810-1
ii  zlib1g        1:1.2.8.dfsg-2+b1

nano recommends no packages.

Versions of packages nano suggests:
pn  spell  <none>

-- no debconf information

Regards,
Lucian

Reply via email to