openbsd-ports/x11/emelfm2/patches/patch-src_utils_e2_utils_c
2010-05-04 07:25:54 +00:00

14 lines
582 B
Plaintext

$OpenBSD: patch-src_utils_e2_utils_c,v 1.5 2010/05/04 07:25:54 giovanni Exp $
Our file(1) doesn't have all that fancy options.
--- src/utils/e2_utils.c.orig Wed Oct 7 23:37:51 2009
+++ src/utils/e2_utils.c Mon Apr 12 19:47:33 2010
@@ -545,7 +545,7 @@ gchar *e2_utils_get_mimetype (VPATH *localpath)
}
#else
g_free (command);
- command = e2_utils_strcat ("file -bhprs --mime-type ", qp);
+ command = e2_utils_strcat ("file -bNs ", qp);
if (e2_fs_get_command_output (command, (gpointer *) &mime))
{
g_strstrip (mime); //strip trailing \n and any whitespace