while ziphos and i were puzzling over why ftpfs spits the
dummy on newly mkdir'd directories we also found a
mssing %M fmtinstall, which acts curiously.
fmtinstall:
brahma% cat f.c
#include <u.h>
#include <libc.h>
#include <fcall.h>
main()
{
Dir *d;
if (fmtinstall('M', dirmodefmt) < 0)
exits("fmtinstall");
if ((d = dirstat(".")) == 0)
exits("dirstat");
print(". %M\n", *d);
exits("");
}
brahma% 8c f.c && 8l f.8
brahma% ./8.out
. d---x--xr-x
brahma% ls -ld .
d-rwxr-xr-x M 289907 boyd boyd 0 May 21 21:03 src
--
MGRS 31U DQ 52572 12604