History log of /src/usr.sbin/rpc.yppasswdd |
Revision | Date | Author | Comments |
1.8 | 03-Jun-2023 |
lukem | bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler.
GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH
Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
|
1.7 | 13-Oct-2019 |
mrg | introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)
use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come.
we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
|
1.6 | 10-Nov-2010 |
christos | branches: 1.6.46; PR/44077: Dr. Wolfgang Stukenbrock: redundant xdr_passwd implementation should be removed, and the one from -lrpcsvc should be used.
|
1.5 | 29-Jul-1998 |
simonb | Remove useless BINOWN=root, BINMODE=555 and BINDIR=/usr/sbin
|
1.4 | 18-Oct-1997 |
lukem | enable WARNS=1 by default, but disable in unclean 3rd party code
|
1.3 | 18-Jul-1997 |
thorpej | Fix compiler warnings.
|
1.2 | 24-Mar-1997 |
christos | Makefile cleanups
|
1.1 | 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 | 09-Aug-1996 |
thorpej | An rpc.yppasswdd implmentation by Mats O Jansson, with some minor cleanup and a race condition fix by me.
|
1.6.46.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.2 | 20-Oct-2009 |
snj | 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.
|
1.1 | 03-Aug-2000 |
ad | KNF.
|
1.18 | 18-Mar-2014 |
riastradh | Merge riastradh-drm2 to HEAD.
|
1.17 | 20-Jul-2013 |
wiz | Use Mt for email addresses.
|
1.16 | 20-Oct-2009 |
snj | branches: 1.16.6; 1.16.12; 1.16.16; 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.
|
1.15 | 26-Feb-2005 |
thorpej | YP -> NIS
|
1.14 | 23-Aug-2003 |
wiz | New sentence, new line; bump date for last; drop superfluous Pp added in last. Increase width for table.
|
1.13 | 22-Aug-2003 |
martti | Added a note about pwd_mkdb when using the -d switch.
|
1.12 | 02-Feb-2002 |
wiz | branches: 1.12.2; Use standard headers, mark up AUTHORS section.
|
1.11 | 19-Jan-2002 |
wiz | Whitespace nits.
|
1.10 | 08-Dec-2000 |
tron | Add a new "-d" option which allows to define the directory of the password file as the "-d" options of "pwd_mkdb" and "vipw".
|
1.9 | 08-Dec-2000 |
tron | The "-m" option makes onyl sense with at least one argument. So enforce that and update the documentation accordingly.
|
1.8 | 05-Jul-2000 |
msaitoh | remove extra period in SEE ALL section
|
1.7 | 28-Jun-1999 |
abs | Remove last traces of securenet and ypserv.acl
|
1.6 | 03-Nov-1998 |
frueauf | branches: 1.6.2; Don't mention /var/yp/yppasswdd.log, nothing supports it. Fixes pr 6393 by Martin J. Laubach and pr 5704 by Geoff Wing.
|
1.5 | 18-Nov-1997 |
lukem | use .Tn YP
|
1.4 | 18-Oct-1997 |
mikel | branches: 1.4.2; xref ypbind(8), not nonexistent ypbind(1)
|
1.3 | 17-Oct-1997 |
lukem | fix .Nm usage
|
1.2 | 23-Oct-1996 |
phil | Fix the type in the description. -a => -m
|
1.1 | 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 | 09-Aug-1996 |
thorpej | An rpc.yppasswdd implmentation by Mats O Jansson, with some minor cleanup and a race condition fix by me.
|
1.4.2.1 | 03-Nov-1998 |
cgd | pull up revs 1.5 and 1.6 from trunk (frueauf)
|
1.6.2.1 | 02-Jul-1999 |
perry | pullup 1.6->1.7 (abs): Remove last traces of securenet and ypserv.acl
|
1.12.2.2 | 09-Sep-2003 |
tron | Pull up revision 1.14 (requested by martti in ticket #1436): New sentence, new line; bump date for last; drop superfluous Pp added in last. Increase width for table.
|
1.12.2.1 | 09-Sep-2003 |
tron | Pull up revision 1.13 (requested by martti in ticket #1433): Added a note about pwd_mkdb when using the -d switch.
|
1.16.16.1 | 23-Jul-2013 |
riastradh | sync with HEAD
|
1.16.12.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.16.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.18 | 04-May-2017 |
sevan | Drop main() prototype.
|
1.17 | 31-Aug-2011 |
plunky | branches: 1.17.32; NULL does not need a cast
|
1.16 | 31-Aug-2011 |
joerg | Use __dead
|
1.15 | 30-Aug-2011 |
plunky | Apply casts to cases where xdrproc_t is expected but is not strictly passed, for example because the second argument is a different kind of pointer.
|
1.14 | 24-May-2011 |
joerg | Properly use format strings
|
1.13 | 20-Oct-2009 |
snj | 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.
|
1.12 | 19-Apr-2009 |
lukem | Fix -Wsign-compare issue
|
1.11 | 08-Nov-2002 |
fvdl | branches: 1.11.40; Use a non-blocking SVC for TCP connections.
|
1.10 | 25-Jan-2002 |
wennmach | branches: 1.10.2; sync usage() message with realty
|
1.9 | 19-Feb-2001 |
cgd | convert to use getprogname()
|
1.8 | 08-Dec-2000 |
tron | Add a new "-d" option which allows to define the directory of the password file as the "-d" options of "pwd_mkdb" and "vipw".
|
1.7 | 08-Dec-2000 |
tron | The "-m" option makes onyl sense with at least one argument. So enforce that and update the documentation accordingly.
|
1.6 | 08-Dec-2000 |
tron | Remove obsolete "domake" variable.
|
1.5 | 08-Dec-2000 |
tron | Fix broken argument parsing: - "-m" shouldn't option be passed to "make". - Avoid buffer overflow while construction shell command to invoke "make".
|
1.4 | 03-Aug-2000 |
ad | KNF.
|
1.3 | 06-Jun-1999 |
thorpej | Use pidfile(3).
|
1.2 | 18-Jul-1997 |
thorpej | Fix compiler warnings.
|
1.1 | 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 | 09-Aug-1996 |
thorpej | An rpc.yppasswdd implmentation by Mats O Jansson, with some minor cleanup and a race condition fix by me.
|
1.10.2.1 | 06-Jan-2003 |
jmc | Pull up revisions 1.10-1.11 (requested by fvdl in ticket #1037) Use a non-blocking SVC for TCP connections.
|
1.11.40.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.17.32.1 | 11-May-2017 |
pgoyette | Sync with HEAD
|
1.18 | 30-Aug-2011 |
plunky | Apply casts to cases where xdrproc_t is expected but is not strictly passed, for example because the second argument is a different kind of pointer.
|
1.17 | 20-Oct-2009 |
snj | 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.
|
1.16 | 24-Feb-2008 |
dholland | This file requires errno.h
|
1.15 | 25-May-2006 |
christos | branches: 1.15.10; 1.15.16; typo s/fp/fpw/
|
1.14 | 25-May-2006 |
christos | typo s/fp/fpw/
|
1.13 | 25-May-2006 |
christos | Coverity CID 3396: Fix file pointer leak.
|
1.12 | 12-May-2004 |
wennmach | 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>.
|
1.11 | 12-Nov-2003 |
grant | branches: 1.11.2; s/netbsd.org/NetBSD.org/i
|
1.10 | 31-Jul-2002 |
bouyer | 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.
|
1.9 | 18-Aug-2001 |
ad | branches: 1.9.2; Update for pw_mkdb() change: restrict updates to one user's records and/or the secure database where appropriate.
|
1.8 | 08-Dec-2000 |
tron | Add a new "-d" option which allows to define the directory of the password file as the "-d" options of "pwd_mkdb" and "vipw".
|
1.7 | 03-Aug-2000 |
ad | KNF.
|
1.6 | 07-Jul-2000 |
itojun | errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
|
1.5 | 04-Jul-2000 |
matt | More #include <stdlib.h> string, etc. cleanup
|
1.4 | 06-Nov-1998 |
is | branches: 1.4.10; Allow changing of formerly empty passwords.
|
1.3 | 24-Jul-1997 |
phil | branches: 1.3.2; Add parameter to call of pw_copy, don't use it, just pass NULL.
|
1.2 | 18-Jul-1997 |
thorpej | Fix compiler warnings.
|
1.1 | 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 | 09-Aug-1996 |
thorpej | An rpc.yppasswdd implmentation by Mats O Jansson, with some minor cleanup and a race condition fix by me.
|
1.3.2.1 | 06-Nov-1998 |
cgd | pull up rev 1.4 from trunk (is)
|
1.4.10.1 | 27-Jul-2000 |
itojun | pullup (approved by releng-1-5) printf-like format pedant. do not pass string variable alone. use "%s". from openbsd.
/cvsroot/basesrc/usr.sbin/netgroup_mkdb/netgroup_mkdb.c 1.9 -> 1.10 /cvsroot/basesrc/usr.sbin/pwd_mkdb/pwd_mkdb.c 1.17 -> 1.18 /cvsroot/basesrc/usr.sbin/quotaon/quotaon.c 1.14 -> 1.15 /cvsroot/basesrc/usr.sbin/rdate/rdate.c 1.10 -> 1.11 /cvsroot/basesrc/usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c 1.5 -> 1.6 /cvsroot/basesrc/usr.sbin/traceroute6/traceroute6.c 1.12 -> 1.13 /cvsroot/basesrc/usr.sbin/wsconscfg/wsconscfg.c 1.6 -> 1.7 /cvsroot/basesrc/usr.sbin/ypserv/revnetgroup/revnetgroup.c 1.7 -> 1.8 /cvsroot/basesrc/usr.sbin/ypserv/ypserv/ypserv.c 1.10 -> 1.11
|
1.9.2.2 | 20-May-2004 |
jmc | Pullup rev 1.12 (requested by 1694 in ticket #wennmach)
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.
|
1.9.2.1 | 24-Nov-2002 |
tron | Pull up revision 1.10 (requested by martti in ticket #741): 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.
|
1.11.2.1 | 20-May-2004 |
tron | Pull up revision 1.12 (requested by wennmach in ticket #350): 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>.
|
1.15.16.1 | 24-Mar-2008 |
keiichi | sync with head.
|
1.15.10.1 | 23-Mar-2008 |
matt | sync with HEAD
|
1.4 | 10-Nov-2010 |
christos | PR/44077: Dr. Wolfgang Stukenbrock: redundant xdr_passwd implementation should be removed, and the one from -lrpcsvc should be used.
|
1.3 | 21-Oct-2009 |
snj | Remove 3rd and 4th clauses. Approved by Mats O Jansson (copyright holder).
|
1.2 | 03-Aug-2000 |
ad | KNF.
|
1.1 | 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 | 09-Aug-1996 |
thorpej | An rpc.yppasswdd implmentation by Mats O Jansson, with some minor cleanup and a race condition fix by me.
|