summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorck153898 <none@none>2008-01-04 10:49:32 -0800
committerck153898 <none@none>2008-01-04 10:49:32 -0800
commitf5f5959bd78f309ae446ddd7d5051717490edd2a (patch)
tree2999e3bfcf454b290bb037de94a53b801c829f90
parentde81a4f48d467f6d0263221cbf4a199b6a925948 (diff)
downloadillumos-gate-f5f5959bd78f309ae446ddd7d5051717490edd2a.tar.gz
6643644 xattrs "ls" output different on SPARC machines
-rw-r--r--usr/src/uts/common/fs/xattr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/xattr.c b/usr/src/uts/common/fs/xattr.c
index 01e6655d02..9c28d9a5c9 100644
--- a/usr/src/uts/common/fs/xattr.c
+++ b/usr/src/uts/common/fs/xattr.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1122,13 +1122,14 @@ xattr_dir_readdir(vnode_t *dvp, uio_t *uiop, cred_t *cr, int *eofp,
{
vnode_t *pvp;
int error;
- int local_eof = 0;
+ int local_eof;
int reset_off = 0;
int has_xattrs = 0;
if (eofp == NULL) {
eofp = &local_eof;
}
+ *eofp = 0;
/*
* See if there is a real extended attribute directory.