Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-15 Thread Christoph Martin
Am 14.05.24 um 10:39 schrieb Vincent Lefevre: This could explain the error. I'm wondering why apt plays with the permissions. This is confusing. Or should there be a locking mechanism? This reminds me about the long due rewrite to use the apt-API to access these files and not read them di

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-14 Thread Vincent Lefevre
On 2024-05-14 09:47:02 +0200, Christoph Martin wrote: > You could try to prepend strace to your cron call like: > > strace -o /tmp/asv.$$ -e trace=file apt-show-versions -u > > and look for the failed syscall. The issue is that this is not reproducible, but see below. > Did you look for selinux

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-14 Thread Vincent Lefevre
On 2024-05-13 15:34:31 +0200, Vincent Lefevre wrote: > > Which user does the cronjob run with? > > root, AFAIK (the mail was from root). Actually by the user (vinc17, i.e. me). I shouldn't have looked at the "From:" header of the mail for that. Anyway, this shouldn't matter because the permission

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-14 Thread Christoph Martin
Hi Vincent, Am 13.05.24 um 19:59 schrieb Vincent Lefevre: On 2024-05-13 17:12:57 +0200, Christoph Martin wrote: Please try to access the file e.g. 'less /var/lib/apt/lists//debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease' No problems. You could try to prepend strace to

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-13 Thread Vincent Lefevre
On 2024-05-13 17:12:57 +0200, Christoph Martin wrote: > Hi Vincent, > > Am 13.05.24 um 15:34 schrieb Vincent Lefevre: > > > > > I don't know why could cause the error, but the pathname with "//" > > > > is incorrect. > > > > > > // in the path should not be a problem. > > > > zsh completion can

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-13 Thread Christoph Martin
Hi Vincent, Am 13.05.24 um 15:34 schrieb Vincent Lefevre: I don't know why could cause the error, but the pathname with "//" is incorrect. // in the path should not be a problem. zsh completion cannot handle it, so I was wondering. Please try to access the file e.g. 'less /var/lib/apt/li

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-13 Thread Vincent Lefevre
Hi Christoph, On 2024-05-13 15:20:28 +0200, Christoph Martin wrote: > Am 11.05.24 um 11:53 schrieb Vincent Lefevre: > > Package: apt-show-versions > > Version: 0.22.15 > > Severity: normal > > > > When running "apt-show-versions -u" in a cron script, I got > > > > Failed to open file > > /var/l

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-13 Thread Christoph Martin
Hi Vincent, Am 11.05.24 um 11:53 schrieb Vincent Lefevre: Package: apt-show-versions Version: 0.22.15 Severity: normal When running "apt-show-versions -u" in a cron script, I got Failed to open file /var/lib/apt/lists//debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease for re

Bug#1070891: apt-show-versions: Permission denied on a bad pathname

2024-05-11 Thread Vincent Lefevre
Package: apt-show-versions Version: 0.22.15 Severity: normal When running "apt-show-versions -u" in a cron script, I got Failed to open file /var/lib/apt/lists//debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease for reading: Permission denied I don't know why could cause the er