Displaying 1 result from an estimated 1 matches for "show_perm".
Did you mean:
show_perms
2013 Jul 06
1
[PATCH 1/2] xenstore: don't die on access-denied child nodes in 'xenstore ls'
...+), 4 deletions(-)
diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c
index 3ac214b..996ee64 100644
--- a/tools/xenstore/xenstore_client.c
+++ b/tools/xenstore/xenstore_client.c
@@ -134,8 +134,13 @@ static void do_ls(struct xs_handle *h, char *path, int cur_depth, int show_perms
unsigned int num, len;
e = xs_directory(h, XBT_NULL, path, &num);
- if (e == NULL)
+ if (e == NULL) {
+ if(errno == EACCES && cur_depth)
+ /* Don''t stop listing just because access was denied to a descendant */
+ return;
+...