Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hash_backup
Commits
a9c85513
Commit
a9c85513
authored
Nov 09, 2016
by
Anders Blomdell
Browse files
Allow uid/gid changing for symlinks and sockets
parent
731d346b
Changes
1
Hide whitespace changes
Inline
Side-by-side
secondary.py
View file @
a9c85513
...
...
@@ -75,13 +75,13 @@ class Backup:
self
.
status
.
replaced
+=
1
self
.
delete
(
dst
)
self
.
add
(
src
)
elif
os
.
path
.
exists
(
dst_path
):
elif
os
.
path
.
l
exists
(
dst_path
):
changed
=
False
if
src
.
kind
in
[
b
'F'
,
b
'D'
]
and
src
.
mode
!=
dst
.
mode
:
self
.
log
.
DEBUG
(
'MODE'
,
dst
.
name
,
src
.
mode
,
dst
.
mode
)
os
.
chmod
(
dst_path
,
int
(
src
.
mode
,
8
))
changed
=
True
if
(
src
.
kind
in
[
b
'F'
,
b
'D'
]
and
if
(
src
.
kind
in
[
b
'F'
,
b
'D'
,
b
'L'
,
b
'S'
]
and
(
src
.
uid
!=
dst
.
uid
or
src
.
gid
!=
dst
.
gid
)):
self
.
log
.
DEBUG
(
'UID/GID'
,
dst
.
name
,
src
.
uid
,
src
.
gid
,
dst
.
uid
,
dst
.
gid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment