Package: ondir
Version: 0.2.3+git20140220.55279f0-1
Severity: important

Dear Maintainer,

`man ondir` advise that common ondir configuration file is
`/etc/ondirrc`

But the file called by debian ondir binary is
`/etc/ondirrc`.

```
# eval "strace -e trace=open,read,close,fstat,openat,statx ondir /etc"
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=19591, ...}) = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\236\2\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2003408, ...}) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/onddirrc", O_RDONLY) = -1 ENOENT (No such file or 
directory)
openat(AT_FDCWD, "/root/.ondirrc", O_RDONLY) = -1 ENOENT (No such file or 
directory)
+++ exited with 0 +++
```

Typo seems here :
`./debian/rules:export DEB_CPPFLAGS_MAINT_APPEND = 
-DVERSION=\\\"$(DEB_VERSION_UPSTREAM)\\\" -DGLOBAL_CONF=\\\"/etc/onddirrc\\\"`

Easy and temporary solution :
`ln /etc/ondirrc /etc/onddirrc`

Sylvain

-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.43+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ondir depends on:
ii  libc6  2.41-12

ondir recommends no packages.

ondir suggests no packages.

-- no debconf information

Reply via email to