diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-16 02:46:20 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-16 02:46:20 +0000 |
commit | 65571526b685d63cdae0e74b75ebf3553eb648dc (patch) | |
tree | 3e17e6a9b4e6085f369c0d0b2ea5ec39b46a127f /bsd-realpath.c | |
parent | 457b5a2bed618a406d19b702ef3e03a5e150f761 (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>
Diffstat (limited to 'bsd-realpath.c')
-rw-r--r-- | bsd-realpath.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 |