projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c582254
)
strncmp requires 3 arguments
author
Jim Bloom
<bloom@ucbvax.Berkeley.EDU>
Mon, 25 Feb 1985 04:25:18 +0000
(20:25 -0800)
committer
Jim Bloom
<bloom@ucbvax.Berkeley.EDU>
Mon, 25 Feb 1985 04:25:18 +0000
(20:25 -0800)
SCCS-vsn: usr.sbin/vipw/vipw.c 4.7
usr/src/usr.sbin/vipw/vipw.c
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/usr.sbin/vipw/vipw.c
b/usr/src/usr.sbin/vipw/vipw.c
index
0b08cd8
..
030adbd
100644
(file)
--- a/
usr/src/usr.sbin/vipw/vipw.c
+++ b/
usr/src/usr.sbin/vipw/vipw.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)vipw.c 4.
6
(Berkeley) %G%";
+static char sccsid[] = "@(#)vipw.c 4.
7
(Berkeley) %G%";
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
@@
-118,7
+118,7
@@
main(argc, argv)
if (cp == 0)
break;
/* login directory */
if (cp == 0)
break;
/* login directory */
- if (strncmp(++cp, "/:"))
+ if (strncmp(++cp, "/:"
, 2
))
break;
cp += 2;
if (*cp && strcmp(cp, "/bin/sh") &&
break;
cp += 2;
if (*cp && strcmp(cp, "/bin/sh") &&