Displaying 1 result from an estimated 1 matches for "verifypath".
2012 Aug 19
3
Bug Report and patch fix
...==========================
RCS file: /cvs/openssh/scp.c,v
retrieving revision 1.189
diff -u -r1.189 scp.c
--- scp.c 22 Sep 2011 11:38:01 -0000 1.189
+++ scp.c 19 Aug 2012 12:00:35 -0000
@@ -364,6 +364,7 @@
void tolocal(int, char *[]);
void toremote(char *, int, char *[]);
void usage(void);
+void verifypath(char *);
int
main(int argc, char **argv)
@@ -551,6 +552,18 @@
}
void
+verifypath(char *file)
+{
+ if (access(file, F_OK) == -1)
+ {
+ errno = ENOENT;
+ run_err("%s: %s",file,strerror(errno));
+ killchild(0);
+ }
+}
+
+
+void
toremote(char *targ, int argc, char **argv)
{
cha...