Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
4996d8de
Commit
4996d8de
authored
15 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
autotools: added the stat command to the automagically replaced ones
... hoping it will help supporting *BSD some day.
parent
f4ab3148
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
configure.in
+7
-0
7 additions, 0 deletions
configure.in
src/Makefile.am
+1
-0
1 addition, 0 deletions
src/Makefile.am
src/backupninja.in
+2
-2
2 additions, 2 deletions
src/backupninja.in
with
13 additions
and
2 deletions
ChangeLog
+
3
−
0
View file @
4996d8de
...
...
@@ -41,6 +41,9 @@ version 0.9.7 -- UNRELEASED
dup:
. Fixed bandwidthlimit syntax error. Thanks to Ian Beckwith for
the patch.
autotools
. Added the stat command to the automagically replaced ones, hoping it
will help supporting *BSD some day.
version 0.9.6 -- July 21, 2008
backupninja changes
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
7
−
0
View file @
4996d8de
...
...
@@ -36,6 +36,13 @@ if test x$MKTEMPT = "xno"; then
AC_MSG_ERROR([mktemp is required])
fi
AC_PATH_PROGS(STAT, stat, "no")
if test x$STAT = "xno"; then
AC_MSG_ERROR([stat is required])
else
export STAT
fi
AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no")
if test "x$ac_cv_have_rpm" = "xyes"; then
rpm --define '_topdir /tmp' > /dev/null 2>&1
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
1
−
0
View file @
4996d8de
...
...
@@ -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'
\
...
...
This diff is collapsed.
Click to expand it.
src/backupninja.in
+
2
−
2
View file @
4996d8de
...
...
@@ -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]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment