add scp path to _PATH_STDPATH

Kevin Steves stevesk at sweden.hp.com
Tue Feb 13 01:56:23 EST 2001


what do you think about this patch to add the path to scp to
_PATH_STDPATH?  is there a better or cleaner way to do this?  i'm hoping
to ward off 'scp doesn't work' questions for the next release.

i did *not* add this to a --with-default-path path, because if a user
specifies that, they should control its value completely.

Index: Makefile.in
===================================================================
RCS file: /var/cvs/openssh/Makefile.in,v
retrieving revision 1.150
diff -u -r1.150 Makefile.in
--- Makefile.in	2001/02/09 13:40:03	1.150
+++ Makefile.in	2001/02/12 14:47:51
@@ -17,11 +17,13 @@
 SSH_PROGRAM=@bindir@/ssh
 ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass
 SFTP_SERVER=$(libexecdir)/sftp-server
+PATH_SCP=$(bindir)

 PATHS= -DETCDIR=\"$(sysconfdir)\" \
 	-D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \
 	-D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \
-	-D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\"
+	-D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \
+	-D_PATH_SCP=\"$(PATH_SCP)\"

 CC=@CC@
 LD=@LD@
Index: defines.h
===================================================================
RCS file: /var/cvs/openssh/defines.h,v
retrieving revision 1.54
diff -u -r1.54 defines.h
--- defines.h	2001/02/09 11:55:17	1.54
+++ defines.h	2001/02/12 14:47:53
@@ -267,7 +267,7 @@
 #endif

 #ifndef _PATH_STDPATH
-# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
+# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" ":" _PATH_SCP
 #endif

 #ifndef _PATH_DEVNULL






More information about the openssh-unix-dev mailing list