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
8c9fd200
Commit
8c9fd200
authored
Oct 25, 1999
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use do_open() instead of open() in several places to help the WinXX port
and O_BINARY
parent
79f118d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
checksum.c
checksum.c
+1
-1
generator.c
generator.c
+1
-1
receiver.c
receiver.c
+2
-2
sender.c
sender.c
+1
-1
util.c
util.c
+1
-1
No files found.
checksum.c
View file @
8c9fd200
...
...
@@ -93,7 +93,7 @@ void file_checksum(char *fname,char *sum,OFF_T size)
memset
(
sum
,
0
,
MD4_SUM_LENGTH
);
fd
=
open
(
fname
,
O_RDONLY
);
fd
=
do_open
(
fname
,
O_RDONLY
,
0
);
if
(
fd
==
-
1
)
return
;
buf
=
map_file
(
fd
,
size
);
...
...
generator.c
View file @
8c9fd200
...
...
@@ -340,7 +340,7 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
}
/* open the file */
fd
=
open
(
fnamecmp
,
O_RDONLY
);
fd
=
do_open
(
fnamecmp
,
O_RDONLY
,
0
);
if
(
fd
==
-
1
)
{
rprintf
(
FERROR
,
"failed to open %s : %s
\n
"
,
fnamecmp
,
strerror
(
errno
));
...
...
receiver.c
View file @
8c9fd200
...
...
@@ -358,14 +358,14 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
fnamecmp
=
fname
;
/* open the file */
fd1
=
open
(
fnamecmp
,
O_RDONLY
);
fd1
=
do_open
(
fnamecmp
,
O_RDONLY
,
0
);
if
((
fd1
==
-
1
)
&&
(
compare_dest
!=
NULL
))
{
/* try the file at compare_dest instead */
slprintf
(
fnamecmpbuf
,
MAXPATHLEN
,
"%s/%s"
,
compare_dest
,
fname
);
fnamecmp
=
fnamecmpbuf
;
fd1
=
open
(
fnamecmp
,
O_RDONLY
);
fd1
=
do_open
(
fnamecmp
,
O_RDONLY
,
0
);
}
if
(
fd1
!=
-
1
&&
do_fstat
(
fd1
,
&
st
)
!=
0
)
{
...
...
sender.c
View file @
8c9fd200
...
...
@@ -160,7 +160,7 @@ void send_files(struct file_list *flist,int f_out,int f_in)
return
;
}
fd
=
open
(
fname
,
O_RDONLY
);
fd
=
do_open
(
fname
,
O_RDONLY
,
0
);
if
(
fd
==
-
1
)
{
io_error
=
1
;
rprintf
(
FERROR
,
"send_files failed to open %s: %s
\n
"
,
...
...
util.c
View file @
8c9fd200
...
...
@@ -282,7 +282,7 @@ int copy_file(char *source, char *dest, mode_t mode)
char
buf
[
1024
*
8
];
int
len
;
/* Number of bytes read into `buf'. */
ifd
=
open
(
source
,
O_RDONLY
);
ifd
=
do_open
(
source
,
O_RDONLY
,
0
);
if
(
ifd
==
-
1
)
{
rprintf
(
FERROR
,
"open %s: %s
\n
"
,
source
,
strerror
(
errno
));
...
...
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