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
59187666
Commit
59187666
authored
Jan 20, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new push_dir() syntax.
parent
808c57c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
clientserver.c
clientserver.c
+2
-2
main.c
main.c
+5
-5
No files found.
clientserver.c
View file @
59187666
...
...
@@ -332,14 +332,14 @@ static int rsync_module(int f_in, int f_out, int i)
return
-
1
;
}
if
(
!
push_dir
(
"/"
,
0
))
{
if
(
!
push_dir
(
"/"
))
{
rsyserr
(
FERROR
,
errno
,
"chdir %s failed
\n
"
,
lp_path
(
i
));
io_printf
(
f_out
,
"@ERROR: chdir failed
\n
"
);
return
-
1
;
}
}
else
{
if
(
!
push_dir
(
lp_path
(
i
)
,
0
))
{
if
(
!
push_dir
(
lp_path
(
i
)))
{
rsyserr
(
FERROR
,
errno
,
"chdir %s failed
\n
"
,
lp_path
(
i
));
io_printf
(
f_out
,
"@ERROR: chdir failed
\n
"
);
return
-
1
;
...
...
main.c
View file @
59187666
...
...
@@ -321,7 +321,7 @@ static char *get_local_name(struct file_list *flist,char *name)
if
(
do_stat
(
name
,
&
st
)
==
0
)
{
if
(
S_ISDIR
(
st
.
st_mode
))
{
if
(
!
push_dir
(
name
,
0
))
{
if
(
!
push_dir
(
name
))
{
rprintf
(
FERROR
,
"push_dir %s failed: %s (1)
\n
"
,
full_fname
(
name
),
strerror
(
errno
));
exit_cleanup
(
RERR_FILESELECT
);
...
...
@@ -347,7 +347,7 @@ static char *get_local_name(struct file_list *flist,char *name)
rprintf
(
FINFO
,
"created directory %s
\n
"
,
name
);
}
if
(
!
push_dir
(
name
,
0
))
{
if
(
!
push_dir
(
name
))
{
rprintf
(
FERROR
,
"push_dir %s failed: %s (2)
\n
"
,
full_fname
(
name
),
strerror
(
errno
));
exit_cleanup
(
RERR_FILESELECT
);
...
...
@@ -366,7 +366,7 @@ static void do_server_sender(int f_in, int f_out, int argc,char *argv[])
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"server_sender starting pid=%d
\n
"
,(
int
)
getpid
());
if
(
!
relative_paths
&&
!
push_dir
(
dir
,
0
))
{
if
(
!
relative_paths
&&
!
push_dir
(
dir
))
{
rprintf
(
FERROR
,
"push_dir %s failed: %s (3)
\n
"
,
full_fname
(
dir
),
strerror
(
errno
));
exit_cleanup
(
RERR_FILESELECT
);
...
...
@@ -498,7 +498,7 @@ static void do_server_recv(int f_in, int f_out, int argc,char *argv[])
dir
=
argv
[
0
];
argc
--
;
argv
++
;
if
(
!
am_daemon
&&
!
push_dir
(
dir
,
0
))
{
if
(
!
am_daemon
&&
!
push_dir
(
dir
))
{
rprintf
(
FERROR
,
"push_dir %s failed: %s (4)
\n
"
,
full_fname
(
dir
),
strerror
(
errno
));
exit_cleanup
(
RERR_FILESELECT
);
...
...
@@ -1005,7 +1005,7 @@ int main(int argc,char *argv[])
* (implemented by forking "pwd" and reading its output) doesn't
* work when there are other child processes. Also, on all systems
* that implement getcwd that way "pwd" can't be found after chroot. */
push_dir
(
NULL
,
0
);
push_dir
(
NULL
);
if
(
write_batch
&&
!
am_server
)
{
write_batch_argvs_file
(
orig_argc
,
orig_argv
);
...
...
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