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
f673ea84
Commit
f673ea84
authored
Jan 26, 2004
by
J.W. Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out bad refactor (thanks Wayne)
parent
64f21c31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
flist.c
flist.c
+6
-3
No files found.
flist.c
View file @
f673ea84
...
...
@@ -293,7 +293,6 @@ static void set_filesystem(char *fname)
STRUCT_STAT
st
;
if
(
link_stat
(
fname
,
&
st
)
!=
0
)
return
;
filesystem_dev
=
st
.
st_dev
;
}
...
...
@@ -702,18 +701,22 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags, int f)
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
(
!
strrchr
(
fname
,
'/'
)
)
if
(
!
p
)
return
0
;
if
(
link_stat
(
fname
,
&
st2
)
!=
0
)
{
*
p
=
0
;
if
(
link_stat
(
fname
,
&
st2
))
{
*
p
=
'/'
;
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