X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Fedit.c;h=a010057da403339609a28a8360c0aa037bbe31d3;hp=3fc41fb1c34d7c0c42fa42ecaaf8255ce7eb18a5;hb=3920ad95f6b2db8fbf20aa26692877a09070cb04;hpb=bda6cf75f259992bcba23c3c4c2339c50552f491;ds=sidebyside diff --git a/fish/edit.c b/fish/edit.c index 3fc41fb..a010057 100644 --- a/fish/edit.c +++ b/fish/edit.c @@ -156,7 +156,7 @@ do_edit (const char *cmd, int argc, char *argv[]) } /* Write new content. */ - if (guestfs_write_file (g, argv[0], content_new, size) == -1) { + if (guestfs_write (g, argv[0], content_new, size) == -1) { free (content); free (content_new); return -1;