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
a24639bb
Commit
a24639bb
authored
Jan 22, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked an argv-type variable so that it's a little clearer what
the code is doing. Also added a comment.
parent
3fef5364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
receiver.c
receiver.c
+5
-4
No files found.
receiver.c
View file @
a24639bb
...
...
@@ -76,7 +76,7 @@ void delete_files(struct file_list *flist)
{
struct
file_list
*
local_file_list
;
int
i
,
j
;
char
*
name
,
fbuf
[
MAXPATHLEN
];
char
*
argv
[
1
]
,
fbuf
[
MAXPATHLEN
];
extern
int
module_id
;
extern
int
ignore_errors
;
extern
int
max_delete
;
...
...
@@ -94,13 +94,13 @@ void delete_files(struct file_list *flist)
if
(
!
S_ISDIR
(
flist
->
files
[
j
]
->
mode
)
||
!
(
flist
->
files
[
j
]
->
flags
&
FLAG_DELETE
))
continue
;
name
=
f_name_to
(
flist
->
files
[
j
],
fbuf
);
argv
[
0
]
=
f_name_to
(
flist
->
files
[
j
],
fbuf
);
if
(
!
(
local_file_list
=
send_file_list
(
-
1
,
1
,
&
name
)))
if
(
!
(
local_file_list
=
send_file_list
(
-
1
,
1
,
argv
)))
continue
;
if
(
verbose
>
1
)
rprintf
(
FINFO
,
"deleting in %s
\n
"
,
name
);
rprintf
(
FINFO
,
"deleting in %s
\n
"
,
fbuf
);
for
(
i
=
local_file_list
->
count
-
1
;
i
>=
0
;
i
--
)
{
if
(
max_delete
&&
deletion_count
>
max_delete
)
break
;
...
...
@@ -151,6 +151,7 @@ static int get_tmpname(char *fnametmp, char *fname)
int
maxname
;
if
(
tmpdir
)
{
/* Note: this can't overflow, so the return value is safe */
length
=
strlcpy
(
fnametmp
,
tmpdir
,
MAXPATHLEN
-
2
);
fnametmp
[
length
++
]
=
'/'
;
fnametmp
[
length
]
=
'\0'
;
/* always NULL terminated */
...
...
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