diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-06-23 22:44:06 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-06-23 22:44:06 +0000 |
commit | 46fc34c49c3db6959c0e05bce725a4db4da729a6 (patch) | |
tree | b21e4fc1b8010240c65217ac3a4f5f53bdf9d3f9 /usr.sbin/rpc.yppasswdd/yppasswdd_server.c | |
parent | 1db04ef8f1f2e146f782b9b95eb495923fc6b033 (diff) | |
download | FreeBSD-src-46fc34c49c3db6959c0e05bce725a4db4da729a6.zip FreeBSD-src-46fc34c49c3db6959c0e05bce725a4db4da729a6.tar.gz |
Whoops: had a couple of hardcoded instances of '/var/yp/' that shouldn't
have been there. Fixed to use yp_dir, which can be set on the command line.
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/yppasswdd_server.c')
-rw-r--r-- | usr.sbin/rpc.yppasswdd/yppasswdd_server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c index 07403f4..f7df723 100644 --- a/usr.sbin/rpc.yppasswdd/yppasswdd_server.c +++ b/usr.sbin/rpc.yppasswdd/yppasswdd_server.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yppasswdd_server.c,v 1.16 1996/06/04 00:00:19 wpaul Exp $ + * $Id: yppasswdd_server.c,v 1.17 1996/06/23 22:20:43 wpaul Exp $ */ #include <stdio.h> @@ -61,7 +61,7 @@ struct dom_binding {}; #include "yppasswd_comm.h" #ifndef lint -static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.16 1996/06/04 00:00:19 wpaul Exp $"; +static const char rcsid[] = "$Id: yppasswdd_server.c,v 1.17 1996/06/23 22:20:43 wpaul Exp $"; #endif /* not lint */ char *tempname; @@ -542,7 +542,7 @@ yppasswdproc_update_1_svc(yppasswd *argp, struct svc_req *rqstp) if (strcmp(domain, yppasswd_domain)) { snprintf(passfile_buf, sizeof(passfile_buf), - "/var/yp/%s/master.passwd", domain); + "%s/%s/master.passwd", yp_dir, domain); passfile = (char *)&passfile_buf; } @@ -695,7 +695,7 @@ allow additions to be made to the password database", progname); if (strcmp(argp->domain, yppasswd_domain)) { snprintf(passfile_buf, sizeof(passfile_buf), - "/var/yp/%s/master.passwd", argp->domain); + "%s/%s/master.passwd", yp_dir, argp->domain); passfile = (char *)&passfile_buf; } |