Bug#1116939: debsums: Cron job error "tee: /proc/self/fd/3: No such device or address" under systemd

Brendan O'Dea bod at debian.org
Wed Jan 7 05:09:43 GMT 2026


On Tue, Sep 30, 2025 at 11:25:20PM +0200, Timo Sigurdsson wrote:
>Sorry, I don't mean to bother you. But I made one more - and actually important - mistake.
>I tested my changed script with bash, and not dash. dash doesn't seem to support process substitution, so the attached diff does unfortunately not work as is.
>
>If you were to adopt my fix, the shebang would also need to be changed to bash. And that makes the fix actually a bit less simple.

Another drive-by, with a simpler fix (attached) to simply tee the output to a
temporary file and cat it at the end.

mktemp is in coreutils, which is essential, and this doesn't use any non-dash
syntax.  Sending the output as email is delayed until the script finishes
anyway, so this should be equivalent.

Caveat: the diff attached is untested with systemd.  I just ran it as:

  sudo dash -xv cron.weekly

and it appeared to work as expected (although found no issues on my particular
machine).

--bod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cron.weekly.diff
Type: text/x-diff
Size: 592 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20260107/b9eca6be/attachment.diff>


More information about the pkg-perl-maintainers mailing list