From: Göran Gustafsson <gustafsson.g@gmail.com>
Date: Sun, 5 Jun 2022 20:13:23 +0000 (+0200)
Subject: Use -x flag with BSD stat
X-Git-Tag: v4.6~54^2
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=93db9bb2be5d8d82198255863ed3dfd89ec03daa;p=nnn.git

Use -x flag with BSD stat
---

diff --git a/src/nnn.c b/src/nnn.c
index 8500b783..82ec9467 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4526,7 +4526,11 @@ static bool show_stats(char *fpath)
 		("file " FILE_MIME_OPTS),
 #endif
 		"file -b",
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+		"stat -x",
+#else
 		"stat",
+#endif
 	};
 
 	size_t r = ELEMENTS(cmds);