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
cefed3e8
Commit
cefed3e8
authored
Feb 04, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delay the output the (verbose > 3) list of files until we've had a
chance to map the uid/gid info in the receiver.
parent
84fa865c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
flist.c
flist.c
+15
-5
No files found.
flist.c
View file @
cefed3e8
...
...
@@ -73,6 +73,7 @@ static char empty_sum[MD4_SUM_LENGTH];
static
unsigned
int
min_file_struct_len
;
static
void
clean_flist
(
struct
file_list
*
flist
,
int
strip_root
,
int
no_dups
);
static
void
output_flist
(
struct
file_list
*
flist
);
void
init_flist
(
void
)
...
...
@@ -1190,6 +1191,9 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
write_batch_flist_info
(
flist
->
count
,
flist
->
files
);
}
if
(
verbose
>
3
)
output_flist
(
flist
);
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"send_file_list done
\n
"
);
...
...
@@ -1265,6 +1269,9 @@ struct file_list *recv_file_list(int f)
}
}
if
(
verbose
>
3
)
output_flist
(
flist
);
if
(
list_only
)
{
int
i
;
for
(
i
=
0
;
i
<
flist
->
count
;
i
++
)
...
...
@@ -1429,18 +1436,21 @@ static void clean_flist(struct file_list *flist, int strip_root, int no_dups)
}
}
}
}
if
(
verbose
<=
3
)
return
;
static
void
output_flist
(
struct
file_list
*
flist
)
{
char
uidbuf
[
16
],
gidbuf
[
16
];
struct
file_struct
*
file
;
int
i
;
for
(
i
=
0
;
i
<
flist
->
count
;
i
++
)
{
char
uidbuf
[
16
],
gidbuf
[
16
];
struct
file_struct
*
file
=
flist
->
files
[
i
];
file
=
flist
->
files
[
i
];
if
(
am_root
&&
preserve_uid
)
sprintf
(
uidbuf
,
" uid=%ld"
,
(
long
)
file
->
uid
);
else
*
uidbuf
=
'\0'
;
if
(
preserve_gid
)
if
(
preserve_gid
&&
file
->
gid
!=
GID_NONE
)
sprintf
(
gidbuf
,
" gid=%ld"
,
(
long
)
file
->
gid
);
else
*
gidbuf
=
'\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