* histrap.c: picky /a1/sw/pkgs/gcc-3.4.3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.3/

* main.c: thinko
This commit is contained in:
tg
2007-01-12 02:06:34 +00:00
parent 4867c8dcef
commit 0b7376a1ad
2 changed files with 6 additions and 7 deletions

9
main.c
View File

@ -13,7 +13,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.65 2007/01/11 00:32:31 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.66 2007/01/12 02:06:34 tg Exp $");
extern char **environ;
@ -137,10 +137,9 @@ main(int argc, char *argv[])
def_path = _PATH_DEFPATH;
#else
#ifdef _CS_PATH
if ((len = confstr(_CS_PATH, NULL, 0)) != (size_t)-1 &&
len > 0 && confstr(_CS_PATH, new = alloc(len + 1, APERM),
len + 1) == len + 1)
def_path = new;
if ((k = confstr(_CS_PATH, NULL, 0)) != (size_t)-1 && k > 0 &&
confstr(_CS_PATH, cp = alloc(k + 1, APERM), k + 1) == k + 1)
def_path = cp;
else
#endif
def_path = "/bin:/usr/bin:/sbin:/usr/sbin";