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
0b8a9bd6
Commit
0b8a9bd6
authored
Mar 17, 2010
by
Matt McCutchen
Committed by
Wayne Davison
Apr 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor restructuring/clarification to get_backup_name.
(Tweaked by Wayne to follow his preferred style.)
parent
7a3ce973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
backup.c
backup.c
+4
-4
No files found.
backup.c
View file @
0b8a9bd6
...
...
@@ -160,13 +160,13 @@ char *get_backup_name(const char *fname)
/* copy fname into backup_dir_buf while validating the dirs. */
if
(
copy_valid_path
(
fname
))
return
backup_dir_buf
;
/* copy_valid_path() has printed an error message. */
return
NULL
;
}
else
{
if
(
stringjoin
(
backup_dir_buf
,
MAXPATHLEN
,
fname
,
backup_suffix
,
NULL
)
<
MAXPATHLEN
)
return
backup_dir_buf
;
}
if
(
stringjoin
(
backup_dir_buf
,
MAXPATHLEN
,
fname
,
backup_suffix
,
NULL
)
<
MAXPATHLEN
)
return
backup_dir_buf
;
rprintf
(
FERROR
,
"backup filename too long
\n
"
);
return
NULL
;
}
...
...
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