Displaying 4 results from an estimated 4 matches for "2b1e4d4".
Did you mean:
2214e4d4
2015 Sep 29
2
Re: [PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
On Tue, Sep 29, 2015 at 11:38:52AM +0200, Pino Toscano wrote:
> ---
> src/copy-in-out.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/copy-in-out.c b/src/copy-in-out.c
> index 0dd8cd3..2b1e4d4 100644
> --- a/src/copy-in-out.c
> +++ b/src/copy-in-out.c
> @@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir
> char buf[buf_len];
> const char *dirname, *basename;
> CLEANUP_FREE char *tar_buf = NULL;
> + struct stat...
2015 Sep 29
2
[PATCH 1/2] copy-in: print tar stderr when it fails
Get also the fd for the tar subprocess, and drain and print its content
if the tar invocation fails.
---
src/copy-in-out.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 61 insertions(+), 4 deletions(-)
diff --git a/src/copy-in-out.c b/src/copy-in-out.c
index dc9e7b7..0dd8cd3 100644
--- a/src/copy-in-out.c
+++ b/src/copy-in-out.c
@@ -34,17 +34,19 @@
#include
2015 Sep 29
0
[PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
---
src/copy-in-out.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/copy-in-out.c b/src/copy-in-out.c
index 0dd8cd3..2b1e4d4 100644
--- a/src/copy-in-out.c
+++ b/src/copy-in-out.c
@@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir
char buf[buf_len];
const char *dirname, *basename;
CLEANUP_FREE char *tar_buf = NULL;
+ struct stat statbuf;
+
+ if (stat (localpath,...
2015 Sep 29
0
Re: [PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
...015 12:55:31 Richard W.M. Jones wrote:
> On Tue, Sep 29, 2015 at 11:38:52AM +0200, Pino Toscano wrote:
> > ---
> > src/copy-in-out.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/src/copy-in-out.c b/src/copy-in-out.c
> > index 0dd8cd3..2b1e4d4 100644
> > --- a/src/copy-in-out.c
> > +++ b/src/copy-in-out.c
> > @@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir
> > char buf[buf_len];
> > const char *dirname, *basename;
> > CLEANUP_FREE char *tar_b...