Use -x flag with BSD stat

This commit is contained in:
Göran Gustafsson 2022-06-05 22:13:23 +02:00
parent 46a5092eee
commit 93db9bb2be

View file

@ -4526,7 +4526,11 @@ static bool show_stats(char *fpath)
("file " FILE_MIME_OPTS), ("file " FILE_MIME_OPTS),
#endif #endif
"file -b", "file -b",
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
"stat -x",
#else
"stat", "stat",
#endif
}; };
size_t r = ELEMENTS(cmds); size_t r = ELEMENTS(cmds);