Control: tags -1 + patch On 2016-09-15 11:03 +0200, Jakub Wilk wrote:
> Package: ncurses-term > Version: 6.0+20160910-1 > User: [email protected] > Usertags: adequate broken-symlink > > ncurses-term ships a bunch of broken symlinks: > > $ dpkg -L ncurses-term | xargs file -N | grep broken > /usr/share/terminfo/1/1178: broken symbolic link to ../adm1178 > /usr/share/terminfo/1/1730-lm: broken symbolic link to ../diablo1740-lm > /usr/share/terminfo/2/2621: broken symbolic link to ../hp2621 > /usr/share/terminfo/2/2621-wl: broken symbolic link to ../hp2621 > /usr/share/terminfo/2/2621A: broken symbolic link to ../hp2621 > /usr/share/terminfo/2/2621a: broken symbolic link to ../hp2621 > /usr/share/terminfo/3/386at: broken symbolic link to ../att6386 > /usr/share/terminfo/3/3b1: broken symbolic link to ../att7300 > /usr/share/terminfo/4/4025ex: broken symbolic link to ../tek4025ex > /usr/share/terminfo/4/4027ex: broken symbolic link to ../tek4025ex > > ... and so on. Thanks for the report, this is due to an oversight/typo in the latest upstream patchlevel. The following patch fixes that: --8<---------------cut here---------------start------------->8--- diff --git a/ncurses/tinfo/write_entry.c b/ncurses/tinfo/write_entry.c index b76a109..8d1e4e3 100644 --- a/ncurses/tinfo/write_entry.c +++ b/ncurses/tinfo/write_entry.c @@ -443,7 +443,7 @@ _nc_write_entry(TERMTYPE *const tp) _nc_STRNCPY(symlinkname, first_name, MY_SIZE); } else { _nc_STRCPY(symlinkname, "../", sizeof(symlinkname)); - _nc_STRNCPY(symlinkname + 3, first_name, MY_SIZE - 3); + _nc_STRNCPY(symlinkname + 3, filename, MY_SIZE - 3); } symlinkname[MY_SIZE] = '\0'; #endif /* USE_SYMLINKS */ --8<---------------cut here---------------end--------------->8--- Cheers, Sven

