diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-07-11 14:10:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-07-11 14:10:12 +0000 |
commit | 4916aa44efe5865ecf26369111e942db15883865 (patch) | |
tree | 0d25ee9436b0740235b56a3ccfb9a7071daae2ce /lib/libcurses/tinfo | |
parent | 952e7e7e45876baae0635785ede2698195e3a4b1 (diff) |
ncurses-990710:
Correct logic in write_entry from split-out of home_terminfo in
980919, which prevented update of $HOME/.terminfo
Diffstat (limited to 'lib/libcurses/tinfo')
-rw-r--r-- | lib/libcurses/tinfo/write_entry.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libcurses/tinfo/write_entry.c b/lib/libcurses/tinfo/write_entry.c index 9ca111ce5c2..e4dea953ffb 100644 --- a/lib/libcurses/tinfo/write_entry.c +++ b/lib/libcurses/tinfo/write_entry.c @@ -1,4 +1,4 @@ -/* $OpenBSD: write_entry.c,v 1.3 1999/03/11 21:03:57 millert Exp $ */ +/* $OpenBSD: write_entry.c,v 1.4 1999/07/11 14:10:11 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -56,7 +56,7 @@ #define TRACE_OUT(p) /*nothing*/ #endif -MODULE_ID("$From: write_entry.c,v 1.46 1999/03/06 22:48:21 tom Exp $") +MODULE_ID("$From: write_entry.c,v 1.47 1999/07/10 20:29:22 tom Exp $") static int total_written; @@ -128,12 +128,10 @@ void _nc_set_writedir(char *dir) char *home = _nc_home_terminfo(); if (home != 0) { - + destination = home; if (make_directory(destination) < 0) _nc_err_abort("%s: permission denied (errno %d)", destination, errno); - - destination = home; } } |