Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved the --disable-debug check sooner in configure.in so that it
[rsync/rsync.git]
/
xattrs.c
diff --git
a/xattrs.c
b/xattrs.c
index
85341b3
..
2d0e050
100644
(file)
--- a/
xattrs.c
+++ b/
xattrs.c
@@
-3,7
+3,7
@@
* Written by Jay Fenlason, vaguely based on the ACLs patch.
*
* Copyright (C) 2004 Red Hat, Inc.
* Written by Jay Fenlason, vaguely based on the ACLs patch.
*
* Copyright (C) 2004 Red Hat, Inc.
- * Copyright (C) 2006-200
8
Wayne Davison
+ * Copyright (C) 2006-200
9
Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-21,6
+21,7
@@
#include "rsync.h"
#include "ifuncs.h"
#include "rsync.h"
#include "ifuncs.h"
+#include "inums.h"
#include "lib/sysxattrs.h"
#ifdef SUPPORT_XATTRS
#include "lib/sysxattrs.h"
#ifdef SUPPORT_XATTRS
@@
-114,7
+115,7
@@
static int rsync_xal_compare_names(const void *x1, const void *x2)
static ssize_t get_xattr_names(const char *fname)
{
ssize_t list_len;
static ssize_t get_xattr_names(const char *fname)
{
ssize_t list_len;
-
double
arg;
+
int64
arg;
if (!namebuf) {
namebuf_len = 1024;
if (!namebuf) {
namebuf_len = 1024;
@@
-132,11
+133,11
@@
static ssize_t get_xattr_names(const char *fname)
} else if (errno == ENOTSUP)
return 0;
else if (errno != ERANGE) {
} else if (errno == ENOTSUP)
return 0;
else if (errno != ERANGE) {
- arg =
(double)
namebuf_len;
+ arg = namebuf_len;
got_error:
rsyserr(FERROR_XFER, errno,
got_error:
rsyserr(FERROR_XFER, errno,
- "get_xattr_names: llistxattr(\"%s\",%
.0f
) failed",
- fname,
arg
);
+ "get_xattr_names: llistxattr(\"%s\",%
s
) failed",
+ fname,
big_num(arg)
);
return -1;
}
list_len = sys_llistxattr(fname, NULL, 0);
return -1;
}
list_len = sys_llistxattr(fname, NULL, 0);