Package: jhead Version: 1:3.00-1 Severity: normal I have a writable directory containing some JPEG files that are non-writable for me. I want to rename them by their timestamps (but not to inadvertently change their content). But "jhead -n" refuses, saying "Skipping readonly file".
The -n option doesn't write the file at all, only the directory, and "mv" has no objections to that. But jhead doesn't check the directory's permissions in the same way, so it's completely inconsistent. I tried an experiment with a read-only directory containing writable files, and it tried to rename them, reporting the error: "Error: Couldn't rename ..." Instead of skipping readonly files, it makes sense to continue as normal until/unless a system call gives us a failure, then report it - like every other Unix utility. That's more reliable that doing access() checks, or whatever it is that jhead does. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (900, 'testing'), (900, 'stable'), (400, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armel Kernel: Linux 3.16.7-ckt2-balti (SMP w/8 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages jhead depends on: ii libc6 2.19-19 ii libjpeg-turbo-progs [libjpeg-progs] 1:1.4.1-1 jhead recommends no packages. Versions of packages jhead suggests: ii graphicsmagick-imagemagick-compat [imagemagick] 1.3.20-3+deb8u1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org