Bug#1071961: mailcap: run-mailcap doesn't properly identifies magic types

2024-05-27 Thread Yair Yarom
When executing external commands in perl, if there are no special shell characters perl executes the command directly, but there is no /usr/bin/command so it fails. You can see this if you try to strace the script. If there are special characters like redirections (I've added apostrophe in this

Bug#1071961: mailcap: run-mailcap doesn't properly identifies magic types

2024-05-26 Thread Charles Plessy
Le Sun, May 26, 2024 at 05:35:28PM +0300, Yair Yarom a écrit : > > The function MagicMimetype always fails because the `command -v file` isn't > executed inside a shell (rather, perl searches for the "command" binary, and > fails to find it). Thanks Yair for the patch. I confirm it works. Can

Bug#1071961: mailcap: run-mailcap doesn't properly identifies magic types

2024-05-26 Thread Yair Yarom
Package: mailcap Version: 3.70+nmu1.huji Severity: normal Tags: patch Dear Maintainer, The function MagicMimetype always fails because the `command -v file` isn't executed inside a shell (rather, perl searches for the "command" binary, and fails to find it). Attached is a patch that fixes this.