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
34fada30
Commit
34fada30
authored
Jan 25, 2004
by
J.W. Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tightened up code in skip_filesystem()
parent
f91e01d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
flist.c
flist.c
+4
-7
No files found.
flist.c
View file @
34fada30
...
...
@@ -293,6 +293,7 @@ static void set_filesystem(char *fname)
STRUCT_STAT
st
;
if
(
link_stat
(
fname
,
&
st
)
!=
0
)
return
;
filesystem_dev
=
st
.
st_dev
;
}
...
...
@@ -695,28 +696,24 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags, int f)
}
/* determine if a file in a different filesstem should be skipped
/* determine if a file in a different files
y
stem should be skipped
when one_file_system is set. We bascally only want to include
the mount points - but they can be hard to find! */
static
int
skip_filesystem
(
char
*
fname
,
STRUCT_STAT
*
st
)
{
STRUCT_STAT
st2
;
char
*
p
=
strrchr
(
fname
,
'/'
);
/* skip all but directories */
if
(
!
S_ISDIR
(
st
->
st_mode
))
return
1
;
/* if its not a subdirectory then allow */
if
(
!
p
)
if
(
!
strrchr
(
fname
,
'/'
)
)
return
0
;
*
p
=
0
;
if
(
link_stat
(
fname
,
&
st2
))
{
*
p
=
'/'
;
if
(
link_stat
(
fname
,
&
st2
)
!=
0
)
{
return
0
;
}
*
p
=
'/'
;
return
(
st2
.
st_dev
!=
filesystem_dev
);
}
...
...
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