aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-12-25 04:09:29 +0100
committerintrigeri <intrigeri@boum.org>2009-12-25 04:09:29 +0100
commit4996d8deb7fcf366f5c012ae919b1245db3d7b6a (patch)
tree7d65ee07a9db0106a47054f4127c9425b47541cd /src
parentf4ab3148f175f8ac415b01fea61d14a80f4de969 (diff)
downloadbackupninja-4996d8deb7fcf366f5c012ae919b1245db3d7b6a.tar.gz
backupninja-4996d8deb7fcf366f5c012ae919b1245db3d7b6a.tar.bz2
autotools: added the stat command to the automagically replaced ones
... hoping it will help supporting *BSD some day.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rwxr-xr-xsrc/backupninja.in4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 3d5bdb8..5694e9a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,6 +11,7 @@ edit = sed \
-e "s,@BASH\@,$(BASH),g" \
-e "s,@AWK\@,$(AWK),g" \
-e "s,@SED\@,$(SED),g" \
+ -e "s,@STAT\@,$(STAT),g" \
-e 's,@datadir\@,$(pkgdatadir),g' \
-e "s,@libdir\@,$(pkglibdir),g" \
-e 's,@localstatedir\@,$(localstatedir),g' \
diff --git a/src/backupninja.in b/src/backupninja.in
index a158715..a991f58 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -143,14 +143,14 @@ function check_perms() {
local perms
local owners
- perms=($(stat -L --format='%A' $file))
+ perms=($(@STAT@ -L --format='%A' $file))
debug "perms: $perms"
local gperm=${perms:4:3}
debug "gperm: $gperm"
local wperm=${perms:7:3}
debug "wperm: $wperm"
- owners=($(stat -L --format='%g %G %u %U' $file))
+ owners=($(@STAT@ -L --format='%g %G %u %U' $file))
local gid=${owners[0]}
local group=${owners[1]}
local owner=${owners[2]}