diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-05-29 17:00:55 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-05-29 17:00:55 +0000 |
commit | 5f9b4100957998d92c8d5a88685c7c94a251bf29 (patch) | |
tree | 55cbef2c52c83a0756968186097a662f697865bc /usr.bin/make | |
parent | 994d41829623f211af1e605d7e1b091877c92d6d (diff) |
Protect against copying a too long PWD.
This is temporary, this code needs better fixes.
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index b81881cde7b..e911e480920 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: main.c,v 1.49 2001/05/29 12:53:41 espie Exp $ */ +/* $OpenBSD: main.c,v 1.50 2001/05/29 17:00:54 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* @@ -509,7 +509,7 @@ main(argc, argv) if ((pwd = getenv("PWD")) != NULL) { if (stat(pwd, &sb) == 0 && sa.st_ino == sb.st_ino && - sa.st_dev == sb.st_dev) + sa.st_dev == sb.st_dev && strlen(pwd) <= MAXPATHLEN) (void)strcpy(curdir, pwd); } |