diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1995-07-02 18:48:21 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1995-07-02 18:48:21 +0000 |
| commit | d32dc73f835d9c9bdcb445a470e7818508300f3b (patch) | |
| tree | 745c8ecc50683d5a095ef79965aef8c463cddf03 /gnu/usr.sbin | |
| parent | 40a63d93aa9e9ade23421f8b1eaa8c59d57fc359 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.sbin')
| -rw-r--r-- | gnu/usr.sbin/ypserv/server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gnu/usr.sbin/ypserv/server.c b/gnu/usr.sbin/ypserv/server.c index 95ccd707699f..a0e48dc76898 100644 --- a/gnu/usr.sbin/ypserv/server.c +++ b/gnu/usr.sbin/ypserv/server.c @@ -24,7 +24,7 @@ ** Ported to FreeBSD and hacked all to pieces ** by Bill Paul <wpaul@ctr.columbia.edu> ** -** $Id: server.c,v 1.5 1995/05/03 14:36:12 wpaul Exp $ +** $Id: server.c,v 1.6 1995/05/30 05:05:35 rgrimes Exp $ ** */ @@ -297,14 +297,12 @@ static DB *open_database(const char *domain, if (map[0] == '.' || strchr(map, '/')) return 0; - strcpy(buf, domain); - strcat(buf, "/"); - strcat(buf, map); + sprintf (buf, "%s/%s", domain, map); dbp = dbopen(buf,O_RDONLY|O_EXCL, PERM_SECURE, DB_HASH, &openinfo); if (debug_flag > 1 && dbp == NULL) - Perror("dbopen(): ",strerror(errno)); + Perror("dbopen(%s): %s", map, strerror(errno)); return dbp; } |
