git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add prototype for timeval_diff.
[libguestfs.git]
/
fish
/
copy.c
diff --git
a/fish/copy.c
b/fish/copy.c
index
f5edad1
..
2aa7c0a
100644
(file)
--- a/
fish/copy.c
+++ b/
fish/copy.c
@@
-22,6
+22,7
@@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
@@
-191,7
+192,7
@@
run_copy_out (const char *cmd, size_t argc, char *argv[])
struct stat statbuf;
if (stat (local, &statbuf) == -1 ||
! (S_ISDIR (statbuf.st_mode))) {
struct stat statbuf;
if (stat (local, &statbuf) == -1 ||
! (S_ISDIR (statbuf.st_mode))) {
- fprintf (stderr, _("copy-
in
: target '%s' is not a directory\n"), local);
+ fprintf (stderr, _("copy-
out
: target '%s' is not a directory\n"), local);
return -1;
}
return -1;
}