search for: do_ls0

Displaying 5 results from an estimated 5 matches for "do_ls0".

Did you mean: do_ls
2016 Jan 15
1
[PATCH] daemon: resolve paths for ll and llz
...ath won't return paths outside sysroot. Fixes part of RHBZ#1293276. --- daemon/ls.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/daemon/ls.c b/daemon/ls.c index d3689cd..0e2f110 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -95,21 +95,24 @@ do_ls0 (const char *path) return 0; } -/* Because we can't chroot and run the ls command (since 'ls' won't - * necessarily exist in the chroot), this command can be used to escape - * from the sysroot (eg. 'll /..'). This command is not meant for - * serious use anyway, just...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...(buf_linkname); free (buf_target); diff --git a/daemon/ls.c b/daemon/ls.c index 5adf5ef..b2de9e5 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -30,6 +30,8 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_ls, ls); + /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -112,7 +114,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, "ls", "-la", spath, NULL); + r = command (&out, &err, str_ls, "-la", spath, NULL); free (spath); if (r == -1) { reply_with_e...
2012 Aug 30
1
[PATCH] collect list of called external commands
...e (buf_linkname); free (buf_target); diff --git a/daemon/ls.c b/daemon/ls.c index 5adf5ef..0a748f7 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -30,6 +30,8 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_ls, ls); + /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -112,7 +114,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, "ls", "-la", spath, NULL); + r = command (&out, &err, str_ls, "-la", spath, NULL); free (spath); if (r == -1) { reply_with_e...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...or ("ln %s: %s: %s: %s", diff --git a/daemon/ls.c b/daemon/ls.c index 0e2f110f5..23bba5041 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -30,8 +30,6 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_ls, ls); - /* Has one FileOut parameter. */ int do_ls0 (const char *path) @@ -118,7 +116,7 @@ do_ll (const char *path) return NULL; } - r = command (&out, &err, str_ls, "-la", spath, NULL); + r = command (&out, &err, "ls", "-la", spath, NULL); if (r == -1) { reply_with_error ("%s&qu...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.