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
9d78ed31
Commit
9d78ed31
authored
Feb 23, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple fixes from Shinichi Maruyama.
parent
89afe532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
backup.c
backup.c
+3
-3
No files found.
backup.c
View file @
9d78ed31
...
@@ -130,8 +130,8 @@ failure:
...
@@ -130,8 +130,8 @@ failure:
/* robustly move a file, creating new directory structures if necessary */
/* robustly move a file, creating new directory structures if necessary */
static
int
robust_move
(
char
*
src
,
char
*
dst
)
static
int
robust_move
(
char
*
src
,
char
*
dst
)
{
{
if
(
robust_rename
(
src
,
dst
,
0755
)
!=
0
||
errno
!=
ENOENT
if
(
robust_rename
(
src
,
dst
,
0755
)
!=
0
&&
(
errno
!=
ENOENT
||
make_bak_dir
(
dst
)
<
0
||
robust_rename
(
src
,
dst
,
0755
)
!=
0
)
||
make_bak_dir
(
dst
)
<
0
||
robust_rename
(
src
,
dst
,
0755
)
!=
0
)
)
return
-
1
;
return
-
1
;
return
0
;
return
0
;
}
}
...
@@ -224,7 +224,7 @@ static int keep_backup(char *fname)
...
@@ -224,7 +224,7 @@ static int keep_backup(char *fname)
/* move to keep tree if a file */
/* move to keep tree if a file */
if
(
!
kept
)
{
if
(
!
kept
)
{
if
(
!
robust_move
(
fname
,
backup_dir_buf
)
)
{
if
(
robust_move
(
fname
,
backup_dir_buf
)
!=
0
)
{
rprintf
(
FERROR
,
"keep_backup failed: %s ->
\"
%s
\"
: %s
\n
"
,
rprintf
(
FERROR
,
"keep_backup failed: %s ->
\"
%s
\"
: %s
\n
"
,
full_fname
(
fname
),
backup_dir_buf
,
strerror
(
errno
));
full_fname
(
fname
),
backup_dir_buf
,
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