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
1ef5bf3c
Commit
1ef5bf3c
authored
Oct 11, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If new_root_dir is set, itemize the output of the "." dir as a
directory-creation event.
parent
2a94207a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
generator.c
generator.c
+9
-2
No files found.
generator.c
View file @
1ef5bf3c
...
...
@@ -78,6 +78,7 @@ extern int copy_dest;
extern
int
link_dest
;
extern
int
whole_file
;
extern
int
list_only
;
extern
int
new_root_dir
;
extern
int
read_batch
;
extern
int
safe_symlinks
;
extern
long
block_size
;
/* "long" because popt can't set an int32. */
...
...
@@ -913,8 +914,14 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
dry_run
++
;
}
if
(
itemizing
&&
f_out
!=
-
1
)
{
itemize
(
file
,
ndx
,
statret
,
&
st
,
statret
?
ITEM_LOCAL_CHANGE
:
0
,
0
,
NULL
);
int
sr
=
statret
;
if
(
new_root_dir
)
{
if
(
*
fname
==
'.'
&&
fname
[
1
]
==
'\0'
)
sr
=
-
1
;
new_root_dir
=
0
;
}
itemize
(
file
,
ndx
,
sr
,
&
st
,
sr
?
ITEM_LOCAL_CHANGE
:
0
,
0
,
NULL
);
}
if
(
statret
!=
0
&&
do_mkdir
(
fname
,
file
->
mode
)
<
0
&&
errno
!=
EEXIST
)
{
if
(
!
relative_paths
||
errno
!=
ENOENT
...
...
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