Package: checkinstall
Version: 1.6.2+git20170426.d24a630-2
Followup-For: Bug #717778
X-Debbugs-Cc: debianbug...@pblue.org
It appears that the root of this issue may be in instw_setpathrel
Specifically, the 'stat' command that is used to get the length of a symlink
should
be 'lstat' instead.
Here is a 1 line-patch that addressed the issue for me:
--- a/installwatch/installwatch.c
+++ b/installwatch/installwatch.c
@@ -1691,7 +1691,7 @@
if ( dirfd == AT_FDCWD ) return instw_setpath(instw, relpath);
snprintf(proc_path, PROC_PATH_LEN, "/proc/self/fd/%d", dirfd);
- if(true_stat(proc_path, ) == -1)
+ if(true_lstat(proc_path, ) == -1)
goto out;
if(!(newpath = malloc(s.st_size+strlen(relpath)+2)))
goto out;
-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.67-zfs (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages checkinstall depends on:
ii dpkg-dev1.20.10
ii file1:5.39-3
ii libc6 2.31-13+deb11u3
ii sensible-utils 0.0.14
Versions of packages checkinstall recommends:
ii make 4.3-4.1
Versions of packages checkinstall suggests:
ii gettext 0.21-4
-- Configuration Files:
/etc/checkinstallrc changed [not included]
-- no debconf information