Displaying 10 results from an estimated 10 matches for "do_llz".
2015 Mar 25
1
[PATCH] New API: ls_i
...;
---
daemon/ls.c | 24 ++++++++++++++++++++++++
generator/actions.ml | 7 +++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/daemon/ls.c b/daemon/ls.c
index d3689cd..fdacdaf 100644
--- a/daemon/ls.c
+++ b/daemon/ls.c
@@ -148,3 +148,27 @@ do_llz (const char *path)
return out; /* caller frees */
}
+
+char *
+do_ls_i (const char *dir)
+{
+ int r;
+ char *out;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *sdir = NULL;
+
+ sdir = sysroot_path (dir);
+ if (!sdir) {
+ reply_with_perror ("malloc");
+ return N...
2016 Jan 15
1
[PATCH] daemon: resolve paths for ll and llz
...path);
+ CHROOT_IN;
+ rpath = realpath (path, NULL);
+ CHROOT_OUT;
+ if (rpath == NULL) {
+ reply_with_perror ("%s", path);
+ return NULL;
+ }
+
+ spath = sysroot_path (rpath);
if (!spath) {
reply_with_perror ("malloc");
return NULL;
@@ -131,9 +134,18 @@ do_llz (const char *path)
int r;
char *out;
CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *rpath = NULL;
CLEANUP_FREE char *spath = NULL;
- spath = sysroot_path (path);
+ CHROOT_IN;
+ rpath = realpath (path, NULL);
+ CHROOT_OUT;
+ if (rpath == NULL) {
+ reply_with_perror ("...
2012 Feb 08
2
Fix virt-edit so it preserves permissions (RHBZ#788641)
The first patch preserves file mode, UID, GID and SELinux context
across edited files.
The second patch adds a useful new command in guestfish ('llz') which
shows SELinux context (like 'ls -laZ') that was useful when debugging
this.
Rich.
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...onst 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_error ("%s", err);
@@ -138,7 +140,7 @@ do_llz (const char *path)
return NULL;
}
- r = command (&out, &err, "ls", "-laZ", spath, NULL);
+ r = command (&out, &err, str_ls, "-laZ", spath, NULL);
free (spath);
if (r == -1) {
reply_with_error ("%s", err);
diff --git a/da...
2012 Aug 30
1
[PATCH] collect list of called external commands
...onst 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_error ("%s", err);
@@ -138,7 +140,7 @@ do_llz (const char *path)
return NULL;
}
- r = command (&out, &err, "ls", "-laZ", spath, NULL);
+ r = command (&out, &err, str_ls, "-laZ", spath, NULL);
free (spath);
if (r == -1) {
reply_with_error ("%s", err);
diff --git a/da...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...onst 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", err);
free (out);
@@ -151,7 +149,7 @@ do_llz (const char *path)
return NULL;
}
- r = command (&out, &err, str_ls, "-laZ", spath, NULL);
+ r = command (&out, &err, "ls", "-laZ", spath, NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
diff --git a/da...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...onst 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", err);
free (out);
@@ -151,7 +151,7 @@ do_llz (const char *path)
return NULL;
}
- r = command (&out, &err, str_ls, "-laZ", spath, NULL);
+ r = command (&out, &err, "ls", "-laZ", spath, NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
diff --git a/da...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option
‘./guestfsd --print-external-commands’
2013 Aug 24
67
[PATCH 00/67] Proposed patches for libguestfs 1.22.6.
In the kernel and qemu communities it is routine for patches that will
be backported to stable branches to be posted for review. I'm
proposing we do the same for libguestfs stable branches.
All of the attached have been tested with 'make check-release'.
Rich.