projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc8d817
)
dup: set secure permissions on tmpdir when creating it
author
intrigeri
<intrigeri@boum.org>
Wed, 25 Jun 2008 09:54:45 +0000
(09:54 +0000)
committer
intrigeri
<intrigeri@boum.org>
Wed, 25 Jun 2008 09:54:45 +0000
(09:54 +0000)
ChangeLog
patch
|
blob
|
history
handlers/dup.in
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 73a38f1aded396be1d70326a2bf0ea85ae583b0c..e1a88f42a44b375a1246cfa6bc92dddb19efdc5d 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-21,8
+21,8
@@
version 0.9.6 -- unreleased
new syntax.
. Support every duplicity-supported transport with new configuration
option desturl (Closes: #483712, #346040, Trac#2).
new syntax.
. Support every duplicity-supported transport with new configuration
option desturl (Closes: #483712, #346040, Trac#2).
- .
-
Actually allow to backup only VServers, by relaxing $include tes
t.
+ .
Actually allow to backup only VServers, by relaxing $include test.
+
. Set secure permissions on tmpdir when creating i
t.
ldap:
. support HDB backend just as the BDB one, and make message clearer
when no supported backend is found (Closes: #476910)
ldap:
. support HDB backend just as the BDB one, and make message clearer
when no supported backend is found (Closes: #476910)
diff --git
a/handlers/dup.in
b/handlers/dup.in
index 2854974d43a49e906ef735571e44a0ba325f4f31..89db671a3fd9f70b62891091fbd11c48705c2c91 100644
(file)
--- a/
handlers/dup.in
+++ b/
handlers/dup.in
@@
-166,6
+166,7
@@
if [ -n "$tmpdir" ]; then
info "Temporary directory ($tmpdir) does not exist, creating it."
mkdir -p "$tmpdir"
[ $? -eq 0 ] || fatal "Could not create temporary directory ($tmpdir)."
info "Temporary directory ($tmpdir) does not exist, creating it."
mkdir -p "$tmpdir"
[ $? -eq 0 ] || fatal "Could not create temporary directory ($tmpdir)."
+ chmod 0700 "$tmpdir"
fi
info "Using $tmpdir as TMPDIR"
precmd="${precmd}TMPDIR=$tmpdir "
fi
info "Using $tmpdir as TMPDIR"
precmd="${precmd}TMPDIR=$tmpdir "