A fix for 'file -m'. A directory in the filesystem is a binary blob. 'text/directory' refers to things like vCards. Reference: /n/sources/patch/applied/file-m-directory-not-mime Date: Sun Nov 1 23:40:49 CET 2009 Signed-off-by: lyndon@orthanc.ca --- /sys/src/cmd/file.c Sun Nov 1 23:39:42 2009 +++ /sys/src/cmd/file.c Sun Nov 1 23:39:38 2009 @@ -335,7 +335,7 @@ return; } if(mbuf->mode & DMDIR) { - print(mime ? "text/directory\n" : "directory\n"); + print(mime ? OCTET : "directory\n"); return; } if(mbuf->type != 'M' && mbuf->type != '|') {