About "DEFAULT_PATH" and "_PATH_SSH_PROGRAM" variables
Yuan-Yi Chang
changyy.csie at gmail.com
Fri Apr 19 16:24:47 WST 2013
Hi,
I'm new to Embedded System World. There are some problems, "scp not
found", when I use dropbear-scp to copy some files. I trace the source code
to find the DEFINE variables: DEFAULT_PATH & _PATH_SSH_PROGRAM.
Could we redefine it at configure or make process without modify the source
code?
like that:
===
+#ifndef _PATH_SSH_PROGRAM
#define _PATH_SSH_PROGRAM "/usr/bin/dbclient"
+#endif
+#ifndef DEFAULT_PATH
#define DEFAULT_PATH "/usr/bin:/bin"
+#endif
and then:
===
$ ./configure
$ CFLAGS=' -D_PATH_SSH_PROGRAM="/path/dbclient"
-DDDEFAULT_PATH="/usr/bin:/bin:/mnt/ubi_boot/bin" ' make
$ CFLAGS=' -D_PATH_SSH_PROGRAM="/path/dbclient"
-DDDEFAULT_PATH="/usr/bin:/bin:/mnt/ubi_boot/bin" ' make scp
Best Regards,
Yuan-Yi Chang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20130419/623372cb/attachment.htm
More information about the Dropbear
mailing list