Commit Graph

43 Commits

Author SHA1 Message Date
joerg 9d62088ad4 Properly use format strings 2011-05-24 13:26:41 +00:00
christos d7b55f9d71 PR/44077: Dr. Wolfgang Stukenbrock: redundant xdr_passwd implementation should
be removed, and the one from -lrpcsvc should be used.
2010-11-10 18:56:17 +00:00
snj 1a868936e6 Remove 3rd and 4th clauses. Approved by Mats O Jansson (copyright holder). 2009-10-21 00:01:56 +00:00
snj 07ce40632e Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
2009-10-20 00:51:13 +00:00
lukem 9797780352 Fix -Wsign-compare issue 2009-04-19 04:01:06 +00:00
dholland 09391c117a This file requires errno.h 2008-02-24 21:10:02 +00:00
christos e4dddba9c6 typo s/fp/fpw/ 2006-05-25 03:17:43 +00:00
christos 862f4856b8 typo s/fp/fpw/ 2006-05-25 03:17:26 +00:00
christos e30bfd160d Coverity CID 3396: Fix file pointer leak. 2006-05-25 01:51:21 +00:00
thorpej 43fd7267b1 YP -> NIS 2005-02-26 16:37:40 +00:00
wennmach 0269a1249b Problem: rpc.yppasswdd didn't work if invoked with the "-noshell" option.
Reason: In routine make_passwd() in yppasswdd_mkpw.c, fgets() is used
to read master.passwd line-by-line. The lines are then parsed using
pw_scan(), without removing the trailing \n from the line. pw_scan()
fills in the shell name into pw.pw_shell, including the trailing \n.

Subsequently, rpc.yppasswdd calls pw_copy(), which copies master.passwd
to ptmp, updating the entry for pw.pw_name. pw_copy() terminates the
updated entry with an additonal \n, so that there is now an empty line
in ptmp.

Finally, rpc.yppasswdd calls pw_mkdb(3), which exec's /usr/sbin/pwd_mkdb
to install ptmp to master.passwd (and to create the pwd.db and spwd.db
data bases). pwd_mkdb chokes on the empty ptmp line.

Fix: remove the trailing \n from the buffer fgets() returns. As a side
effect, this gets us some additional error checking.

Reviewed by <tron>.
2004-05-12 08:25:53 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
wiz 9d5bb59b30 New sentence, new line; bump date for last;
drop superfluous Pp added in last. Increase width for table.
2003-08-23 23:20:12 +00:00
martti 27017e5a9a Added a note about pwd_mkdb when using the -d switch. 2003-08-22 07:04:39 +00:00
fvdl d4f83aa2bb Use a non-blocking SVC for TCP connections. 2002-11-08 00:14:50 +00:00
bouyer 27b46820fc As discussed on tech-userlevel on Jun, 10 2002, make changes to not use
getpwnam() to get the user's passwd entry but read it from the passwd file
yppasswdd will later update. This allows a NetBSD machine to be master NIS
server without requiring the NIS accounts to exist (via /etc/master.passwd,
nis or other ways) on the local machine.
2002-07-31 14:41:56 +00:00
wiz 1d9fe6b842 Use standard headers, mark up AUTHORS section. 2002-02-02 01:43:52 +00:00
wennmach fbd3eb4819 sync usage() message with realty 2002-01-25 20:30:41 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
ad 1e8e78ed07 Update for pw_mkdb() change: restrict updates to one user's records and/or
the secure database where appropriate.
2001-08-18 19:35:32 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
tron 7ebe3b4a17 Add a new "-d" option which allows to define the directory of the
password file as the "-d" options of "pwd_mkdb" and "vipw".
2000-12-08 22:23:14 +00:00
tron 6deb512a7c The "-m" option makes onyl sense with at least one argument. So enforce
that and update the documentation accordingly.
2000-12-08 21:51:21 +00:00
tron 48698d8229 Remove obsolete "domake" variable. 2000-12-08 21:24:16 +00:00
tron e5d0716506 Fix broken argument parsing:
- "-m" shouldn't option be passed to "make".
- Avoid buffer overflow while construction shell command to invoke "make".
2000-12-08 21:09:37 +00:00
ad 308c65aabe KNF. 2000-08-03 08:22:33 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
matt 3ab02a8704 More #include <stdlib.h> string, etc. cleanup 2000-07-04 20:27:35 +00:00
abs c21e827bb5 Remove last traces of securenet and ypserv.acl 1999-06-28 01:21:51 +00:00
thorpej 653c3855f5 Use pidfile(3). 1999-06-06 02:38:00 +00:00
is f12b956e84 Allow changing of formerly empty passwords. 1998-11-06 13:07:18 +00:00
frueauf d09e131d17 Don't mention /var/yp/yppasswdd.log, nothing supports it. Fixes pr 6393
by Martin J. Laubach and pr 5704 by Geoff Wing.
1998-11-03 10:33:23 +00:00
simonb d3eedb9246 Remove useless BINOWN=root, BINMODE=555 and BINDIR=/usr/sbin 1998-07-29 01:19:00 +00:00
lukem 6236ac0333 use .Tn YP 1997-11-18 06:52:15 +00:00
mikel bee22c9c19 xref ypbind(8), not nonexistent ypbind(1) 1997-10-18 06:50:50 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem 489b57b190 fix .Nm usage 1997-10-17 16:12:03 +00:00
phil ffdae81455 Add parameter to call of pw_copy, don't use it, just pass NULL. 1997-07-24 08:54:56 +00:00
thorpej a5e58d3dda Fix compiler warnings. 1997-07-18 07:47:26 +00:00
christos 0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
phil 3aa6054ce8 Fix the type in the description. -a => -m 1996-10-23 04:58:50 +00:00
thorpej d3e1a3664e An rpc.yppasswdd implmentation by Mats O Jansson, with some minor
cleanup and a race condition fix by me.
1996-08-09 10:19:48 +00:00