Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
ce37eb2d
Commit
ce37eb2d
authored
Feb 03, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If verbose > 2, mention it if we're setting the uid or the gid.
parent
0d6e308b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
rsync.c
rsync.c
+12
-0
No files found.
rsync.c
View file @
ce37eb2d
...
...
@@ -158,6 +158,18 @@ int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
change_gid
=
preserve_gid
&&
file
->
gid
!=
GID_NONE
&&
st
->
st_gid
!=
file
->
gid
;
if
(
change_uid
||
change_gid
)
{
if
(
verbose
>
2
&&
!
dry_run
)
{
if
(
change_uid
)
{
rprintf
(
FINFO
,
"set uid of %s from %ld to %ld
\n
"
,
fname
,
(
long
)
st
->
st_uid
,
(
long
)
file
->
uid
);
}
if
(
change_gid
)
{
rprintf
(
FINFO
,
"set gid of %s from %ld to %ld
\n
"
,
fname
,
(
long
)
st
->
st_gid
,
(
long
)
file
->
gid
);
}
}
if
(
do_lchown
(
fname
,
change_uid
?
file
->
uid
:
st
->
st_uid
,
change_gid
?
file
->
gid
:
st
->
st_gid
)
!=
0
)
{
...
...
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