scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 diff -dur strace-4.5.15.orig/system.c strace-4.5.15/system.c
2 --- strace-4.5.15.orig/system.c 2007-01-17 00:22:36.000000000 +0100
3 +++ strace-4.5.15/system.c 2007-07-14 19:28:41.000000000 +0200
5 { CTL_KERN, "CTL_KERN" },
7 { CTL_NET, "CTL_NET" },
9 { CTL_PROC, "CTL_PROC" },
12 { CTL_DEBUG, "CTL_DEBUG" },
13 { CTL_DEV, "CTL_DEV" },