1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/usr.sbin/rpc.yppasswdd
Bill Paul 0c06051e16 Fix 'multidomain' code. It returns a pointer to memory that it doesn't
really own (and which can end up being mangled later). The manifestation
of this bug is that the first attempt by a user to change their NIS password
succeeds, but all subsequent attempts fail. rpc.yppasswdd also logs
a message about not being able to find a file called
'/var/yp/<some garbage string>/master.passwd.' (Note that for some
bizarre reason, this doesn't happen with the malloc() from FreeBSD 2.1.0.
I suppose this means we can chalk up another victory for phkmalloc. :)

This bug only occurs if you use the -m flag with rpc.yppasswdd.

Fix this by copying the domain name to a static buffer and returning
a pointer to that instead.

Reported by: Jian-Da Li (jdli@csie.nctu.edu.tw)
1996-05-08 15:57:11 +00:00
..
Makefile Add securenets support (uses same access control mechanism as ypserv, 1996-02-24 22:10:42 +00:00
pw_copy.c
pw_util.c
rpc.yppasswdd.8 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
yppasswd_comm.c
yppasswd_comm.h
yppasswd_private.x
yppasswdd_extern.h Add securenets support (uses same access control mechanism as ypserv, 1996-02-24 22:10:42 +00:00
yppasswdd_main.c Add securenets support (uses same access control mechanism as ypserv, 1996-02-24 22:10:42 +00:00
yppasswdd_server.c Fix 'multidomain' code. It returns a pointer to memory that it doesn't 1996-05-08 15:57:11 +00:00
yppwupdate Make yppwupdate script redirect stderr to stdout; if we don't do this, 1996-03-05 15:41:02 +00:00