artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d78547
)
limit basedir length
author
deraadt
<deraadt@openbsd.org>
Fri, 30 Aug 1996 14:24:48 +0000
(14:24 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 30 Aug 1996 14:24:48 +0000
(14:24 +0000)
usr.sbin/pwd_mkdb/pwd_mkdb.c
patch
|
blob
|
history
diff --git
a/usr.sbin/pwd_mkdb/pwd_mkdb.c
b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index
5c0e392
..
f5d0610
100644
(file)
--- a/
usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/
usr.sbin/pwd_mkdb/pwd_mkdb.c
@@
-40,7
+40,7
@@
static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";*/
-static char *rcsid = "$Id: pwd_mkdb.c,v 1.
5 1996/05/22 11:35:54
deraadt Exp $";
+static char *rcsid = "$Id: pwd_mkdb.c,v 1.
6 1996/08/30 14:24:48
deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@
-113,6
+113,8
@@
main(argc, argv)
break;
case 'd':
basedir = optarg;
+ if (strlen(basedir) > MAXPATHLEN - 40)
+ error("basedir too long");
break;
case '?':
default: