summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-16 02:46:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-11-16 02:46:20 +0000
commit65571526b685d63cdae0e74b75ebf3553eb648dc (patch)
tree3e17e6a9b4e6085f369c0d0b2ea5ec39b46a127f
parent457b5a2bed618a406d19b702ef3e03a5e150f761 (diff)
20001116
- (bal) Added in MAXSYMLINK test in bsd-realpath.c. Required for some SCO releases. - (bal) Make builds work outside of source tree. Patch by Mark D. Roth <roth@feep.net>
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.in12
-rw-r--r--bsd-realpath.c7
3 files changed, 19 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e85bff07..64e36d0e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120001116
2 - (bal) Added in MAXSYMLINK test in bsd-realpath.c. Required for some SCO
3 releases.
4 - (bal) Make builds work outside of source tree. Patch by Mark D. Roth
5 <roth@feep.net>
6
120001113 720001113
2 - (djm) Add pointer to http://www.imasy.or.jp/~gotoh/connect.c to 8 - (djm) Add pointer to http://www.imasy.or.jp/~gotoh/connect.c to
3 contrib/README 9 contrib/README
diff --git a/Makefile.in b/Makefile.in
index 7967cc57b..c01859ac0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -179,24 +179,24 @@ host-key: ssh-keygen$(EXEEXT)
179 if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ 179 if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
180 echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ 180 echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
181 else \ 181 else \
182 $(srcdir)/ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ 182 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
183 fi ; \ 183 fi ; \
184 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ 184 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
185 echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ 185 echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
186 else \ 186 else \
187 $(srcdir)/ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ 187 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
188 fi ; \ 188 fi ; \
189 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \ 189 if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \
190 echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \ 190 echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \
191 else \ 191 else \
192 $(srcdir)/ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \ 192 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \
193 fi ; \ 193 fi ; \
194 fi ; 194 fi ;
195 195
196host-key-force: ssh-keygen$(EXEEXT) 196host-key-force: ssh-keygen$(EXEEXT)
197 $(srcdir)/ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" 197 ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N ""
198 $(srcdir)/ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" 198 ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
199 $(srcdir)/ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" 199 ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N ""
200 200
201uninstallall: uninstall 201uninstallall: uninstall
202 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config 202 -rm -f $(DESTDIR)$(sysconfdir)/ssh_config
diff --git a/bsd-realpath.c b/bsd-realpath.c
index 103dcc256..baf17f1a4 100644
--- a/bsd-realpath.c
+++ b/bsd-realpath.c
@@ -52,6 +52,13 @@ static char *rcsid = "$OpenBSD: realpath..c,v 1.4 1998/05/18 09:55:19 deraadt Ex
52#endif 52#endif
53 53
54/* 54/*
55 * MAXSYMLINKS
56 */
57#ifndef MAXSYMLINKS
58#define MAXSYMLINKS 5
59#endif
60
61/*
55 * char *realpath(const char *path, char resolved_path[MAXPATHLEN]); 62 * char *realpath(const char *path, char resolved_path[MAXPATHLEN]);
56 * 63 *
57 * Find the real name of path, by removing all ".", ".." and symlink 64 * Find the real name of path, by removing all ".", ".." and symlink