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
417c99f6
Commit
417c99f6
authored
Feb 11, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If --backup was specified, the links we remove are backed up.
parent
de0e2250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
hlink.c
hlink.c
+7
-3
No files found.
hlink.c
View file @
417c99f6
...
...
@@ -22,6 +22,7 @@
extern
int
dry_run
;
extern
int
verbose
;
extern
int
make_backups
;
#if SUPPORT_HARD_LINKS
static
int
hlink_compare
(
struct
file_struct
**
file1
,
struct
file_struct
**
file2
)
...
...
@@ -38,8 +39,8 @@ static int hlink_compare(struct file_struct **file1, struct file_struct **file2)
return
file_compare
(
file1
,
file2
);
}
struct
file_struct
**
hlink_list
;
int
hlink_count
;
st
atic
st
ruct
file_struct
**
hlink_list
;
static
int
hlink_count
;
#define LINKED(p1,p2) ((p1)->F_DEV == (p2)->F_DEV \
&& (p1)->F_INODE == (p2)->F_INODE)
...
...
@@ -190,7 +191,10 @@ void do_hard_links(void)
if
(
st2
.
st_dev
==
st1
.
st_dev
&&
st2
.
st_ino
==
st1
.
st_ino
)
continue
;
if
(
robust_unlink
(
hlink2
))
{
if
(
make_backups
)
{
if
(
!
make_backup
(
hlink2
))
continue
;
}
else
if
(
robust_unlink
(
hlink2
))
{
if
(
verbose
>
0
)
{
rprintf
(
FINFO
,
"unlink %s failed: %s
\n
"
,
...
...
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