diff options
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r-- | usr.sbin/vipw/pw_util.c | 4 | ||||
-rw-r--r-- | usr.sbin/vipw/vipw.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c index c851fcb..8dd4e4c5 100644 --- a/usr.sbin/vipw/pw_util.c +++ b/usr.sbin/vipw/pw_util.c @@ -105,7 +105,7 @@ pw_init() int pw_lock() { - /* + /* * If the master password file doesn't exist, the system is hosed. * Might as well try to build one. Set the close-on-exec bit so * that users can't get at the encrypted passwords while editing. @@ -167,7 +167,7 @@ pw_edit(notsetuid) editor = _PATH_VI; if (p = strrchr(editor, '/')) ++p; - else + else p = editor; if (!(editpid = vfork())) { diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index c671623..d69111f 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -73,7 +73,7 @@ main(argc, argv) default: usage(); } - + argc -= optind; argv += optind; @@ -109,7 +109,7 @@ copyfile(from, to) { int nr, nw, off; char buf[8*1024]; - + while ((nr = read(from, buf, sizeof(buf))) > 0) for (off = 0; off < nr; nr -= nw, off += nw) if ((nw = write(to, buf + off, nr)) < 0) |