aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-03-30 04:21:31 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-03-30 04:21:31 +0000
commit8d36de4ea230f3e8d1c713bf4ab26c0dfcb4674b (patch)
treebd08f0d5dbd7a66b4b0ff3e9869f621ef295f772 /gnu
parenteffe77366702cf574770491e7b34304f1ef6190f (diff)
downloadsrc-8d36de4ea230f3e8d1c713bf4ab26c0dfcb4674b.tar.gz
src-8d36de4ea230f3e8d1c713bf4ab26c0dfcb4674b.zip
Ack... clean up the logfile name generation that I botched in the last
commit.
Notes
Notes: svn path=/head/; revision=7484
Diffstat (limited to 'gnu')
-rw-r--r--gnu/libexec/ypxfr/ypxfr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/libexec/ypxfr/ypxfr.c b/gnu/libexec/ypxfr/ypxfr.c
index 655ec63d3b03..292ff98fdb53 100644
--- a/gnu/libexec/ypxfr/ypxfr.c
+++ b/gnu/libexec/ypxfr/ypxfr.c
@@ -18,7 +18,7 @@
Modified for use with FreeBSD 2.x by Bill Paul (wpaul@ctr.columbia.edu)
- $Id: ypxfr.c,v 1.2 1995/02/06 23:35:49 wpaul Exp $
+ $Id: ypxfr.c,v 1.3 1995/03/30 04:14:46 wpaul Exp $
*/
#include <stdio.h>
@@ -271,8 +271,7 @@ main (int argc, char **argv)
int fd;
char logfile[MAXPATHLEN];
sprintf (logfile, "%sypxfr.log", _PATH_YP);
- if ((fd = open("/var/yp/ypxfr.log",
- O_CREAT|O_WRONLY|O_APPEND, 0644))) {
+ if ((fd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0644))) {
close(0);
dup(fd);
close(1);