aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt1
-rw-r--r--pseudo_db.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 919b928..d76bd0b 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,6 +1,7 @@
2016-02-05:
* (seebs) don't abort search for server on first try.
* (seebs) new clients cancel a shutdown request.
+ * (seebs) sort xattrs when returning list.
2016-01-22:
* (seebs) Mask in S_IFREG when mknod called with no S_IFMT bits.
diff --git a/pseudo_db.c b/pseudo_db.c
index f60f0ab..c387cb5 100644
--- a/pseudo_db.c
+++ b/pseudo_db.c
@@ -2235,7 +2235,7 @@ pdb_list_xattr(long long file_id, char **value, size_t *len) {
size_t used = 0;
char *buffer = 0;
int rc;
- char *sql = "SELECT name FROM xattrs WHERE file_id = ?;";
+ char *sql = "SELECT name FROM xattrs WHERE file_id = ? ORDER BY name;";
/* if we don't have a record of the file, it must not have
* any extended attributes...