Fixed stat to use --format instead of --printf to be compatible with coreutils
[matthijs/upstream/backupninja.git] / src / backupninja.in
index e4f5ea73dc53afd6084b5c6563240e0a14d6c0a1..114d66c2faef86fb13967ecaf9ea97c259cc80fe 100755 (executable)
@@ -132,7 +132,7 @@ function msg {
 function check_perms() {
    local file=$1
    local perms
-   perms=($(stat -L --printf='%a %g %G %u %U' $file))
+   perms=($(stat -L --format='%a %g %G %u %U' $file))
    local gperm=${perms[0]:1:1}
    local wperm=${perms[0]:2:1}
    local gid=${perms[1]}