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
b4e6aac9
Commit
b4e6aac9
authored
Mar 08, 2008
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a syntax problem for non-HAVE_LINUX_ATTRS systems.
parent
7c21776e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
xattrs.c
xattrs.c
+6
-6
No files found.
xattrs.c
View file @
b4e6aac9
...
...
@@ -350,15 +350,14 @@ int send_xattr(stat_x *sxp, int f)
int
count
=
sxp
->
xattr
->
count
;
write_varint
(
f
,
count
);
for
(
rxa
=
sxp
->
xattr
->
items
;
count
--
;
rxa
++
)
{
in
t
name_len
=
rxa
->
name_len
;
size_
t
name_len
=
rxa
->
name_len
;
const
char
*
name
=
rxa
->
name
;
/* Strip the rsync prefix from disguised namespaces. */
if
(
if
(
name_len
>
RPRE_LEN
#ifdef HAVE_LINUX_XATTRS
am_root
<
0
&&
am_root
<
0
#endif
&&
name_len
>
RPRE_LEN
&&
name
[
RPRE_LEN
]
!=
'%'
&&
HAS_PREFIX
(
name
,
RSYNC_PREFIX
))
{
&&
name
[
RPRE_LEN
]
!=
'%'
&&
HAS_PREFIX
(
name
,
RSYNC_PREFIX
))
{
name
+=
RPRE_LEN
;
name_len
-=
RPRE_LEN
;
}
...
...
@@ -699,7 +698,8 @@ static int rsync_xal_set(const char *fname, item_list *xalp,
ssize_t
list_len
;
size_t
i
,
len
;
char
*
name
,
*
ptr
,
sum
[
MAX_DIGEST_LEN
];
int
name_len
,
ret
=
0
;
size_t
name_len
;
int
ret
=
0
;
/* This puts the current name list into the "namebuf" buffer. */
if
((
list_len
=
get_xattr_names
(
fname
))
<
0
)
...
...
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