]> Sergey Matveev's repositories - nnn.git/commitdiff
Use -x flag with BSD stat
authorGöran Gustafsson <gustafsson.g@gmail.com>
Sun, 5 Jun 2022 20:13:23 +0000 (22:13 +0200)
committerGöran Gustafsson <gustafsson.g@gmail.com>
Sun, 5 Jun 2022 20:13:23 +0000 (22:13 +0200)
src/nnn.c

index 8500b783f0caf75250134442dff704f519def0af..82ec9467bb08914347ffa6cbeb90964a014a6183 100644 (file)
--- 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);