another PATH_MAX
This commit is contained in:
parent
9d91c29d45
commit
60cde7c92e
6
c_ksh.c
6
c_ksh.c
@ -1,4 +1,4 @@
|
||||
/* $MirBSD: c_ksh.c,v 1.4 2004/05/24 19:55:55 tg Stab $ */
|
||||
/* $MirBSD: c_ksh.c,v 1.5 2004/09/21 11:37:29 tg Exp $ */
|
||||
/* $OpenBSD: c_ksh.c,v 1.18 2004/02/10 13:03:36 jmc Exp $ */
|
||||
|
||||
/*
|
||||
@ -99,7 +99,7 @@ c_cd(wp)
|
||||
return 1;
|
||||
}
|
||||
|
||||
Xinit(xs, xp, PATH, ATEMP);
|
||||
Xinit(xs, xp, PATH_MAX, ATEMP);
|
||||
/* xp will have a bogus value after make_path() - set it to 0
|
||||
* so that if it's used, it will cause a dump
|
||||
*/
|
||||
@ -156,7 +156,7 @@ c_cd(wp)
|
||||
/* Set PWD */
|
||||
if (pwd) {
|
||||
#ifdef __CYGWIN__
|
||||
char ptmp[PATH]; /* larger than MAX_PATH */
|
||||
char ptmp[PATH_MAX]; /* larger than MAX_PATH */
|
||||
cygwin_conv_to_full_posix_path(pwd, ptmp);
|
||||
#else /* __CYGWIN__ */
|
||||
char *ptmp = pwd;
|
||||
|
6
sh.h
6
sh.h
@ -1,4 +1,4 @@
|
||||
/** $MirBSD: sh.h,v 1.11 2004/08/27 14:55:45 tg Stab $ */
|
||||
/** $MirBSD: sh.h,v 1.12 2004/09/21 11:37:29 tg Exp $ */
|
||||
/* $OpenBSD: sh.h,v 1.18 2004/05/31 10:36:35 otto Exp $ */
|
||||
|
||||
/*
|
||||
@ -357,7 +357,9 @@ typedef INT32 Tflag;
|
||||
#define NOT '!' /* might use ^ (ie, [!...] vs [^..]) */
|
||||
|
||||
#define LINE 4096 /* input line size */
|
||||
#define PATH 1024 /* pathname size (todo: PATH_MAX/pathconf()) */
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 1024 /* pathname size (todo: pathconf()) */
|
||||
#endif
|
||||
#define ARRAYMAX 2047 /* max array index */
|
||||
|
||||
EXTERN const char *kshname; /* $0 */
|
||||
|
Loading…
Reference in New Issue
Block a user