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
f05f993e
Commit
f05f993e
authored
Feb 04, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If we're dumping the file list (i.e. verbose > 3), mention the uid and/or
gid (depending on applicability).
parent
e90cdb8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
flist.c
flist.c
+15
-7
No files found.
flist.c
View file @
f05f993e
...
...
@@ -31,6 +31,7 @@ extern struct stats stats;
extern
int
verbose
;
extern
int
do_progress
;
extern
int
am_root
;
extern
int
am_server
;
extern
int
always_checksum
;
extern
int
module_id
;
...
...
@@ -1433,13 +1434,20 @@ static void clean_flist(struct file_list *flist, int strip_root, int no_dups)
return
;
for
(
i
=
0
;
i
<
flist
->
count
;
i
++
)
{
rprintf
(
FINFO
,
"[%s] i=%d %s %s %s mode=0%o len=%.0f
\n
"
,
who_am_i
(),
i
,
NS
(
flist
->
files
[
i
]
->
basedir
),
NS
(
flist
->
files
[
i
]
->
dirname
),
NS
(
flist
->
files
[
i
]
->
basename
),
(
int
)
flist
->
files
[
i
]
->
mode
,
(
double
)
flist
->
files
[
i
]
->
length
);
char
uidbuf
[
16
],
gidbuf
[
16
];
struct
file_struct
*
file
=
flist
->
files
[
i
];
if
(
am_root
&&
preserve_uid
)
sprintf
(
uidbuf
,
" uid=%ld"
,
(
long
)
file
->
uid
);
else
*
uidbuf
=
'\0'
;
if
(
preserve_gid
)
sprintf
(
gidbuf
,
" gid=%ld"
,
(
long
)
file
->
gid
);
else
*
gidbuf
=
'\0'
;
rprintf
(
FINFO
,
"[%s] i=%d %s %s %s mode=0%o len=%.0f%s%s
\n
"
,
who_am_i
(),
i
,
NS
(
file
->
basedir
),
NS
(
file
->
dirname
),
NS
(
file
->
basename
),
(
int
)
file
->
mode
,
(
double
)
file
->
length
,
uidbuf
,
gidbuf
);
}
}
...
...
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