From: micah Date: Sun, 13 Aug 2006 15:53:11 +0000 (+0000) Subject: Fixed stat to use --format instead of --printf to be compatible with coreutils X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=819ba95154116cef90c721d43dc282d01b010ecd;p=matthijs%2Fupstream%2Fbackupninja.git Fixed stat to use --format instead of --printf to be compatible with coreutils git-svn-id: http://code.autistici.org/svn/backupninja/trunk@427 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 2daf397..036675e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ version 0.9.4 -- unreleased . When determining which backup actions to make, find now follows symlinks for $configdirectory . Changed order of -s to mail for compatibility + . fixed permission stat call so it uses the --format supported by + coreutils (Closes: #382747) handler changes Added tar handler: . create tarballs diff --git a/src/backupninja.in b/src/backupninja.in index e4f5ea7..114d66c 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -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]}