diff options
author | 1999-07-11 14:10:11 +0000 | |
---|---|---|
committer | 1999-07-11 14:10:11 +0000 | |
commit | beedc2d55ae7af2b4fc497c15187fa6487208fe8 (patch) | |
tree | e2dcf4bc26e84beb9291b5c438ff28f764476466 | |
parent | Fix a SEGV after you HUP vi; dean@netbsd.org (diff) | |
download | wireguard-openbsd-beedc2d55ae7af2b4fc497c15187fa6487208fe8.tar.xz wireguard-openbsd-beedc2d55ae7af2b4fc497c15187fa6487208fe8.zip |
ncurses-990710:
Correct logic in write_entry from split-out of home_terminfo in
980919, which prevented update of $HOME/.terminfo
-rw-r--r-- | lib/libcurses/curses.h | 4 | ||||
-rw-r--r-- | lib/libcurses/tinfo/write_entry.c | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/libcurses/curses.h b/lib/libcurses/curses.h index 4a008c6b830..2e61fff4cad 100644 --- a/lib/libcurses/curses.h +++ b/lib/libcurses/curses.h @@ -1,4 +1,4 @@ -/* $OpenBSD: curses.h,v 1.34 1999/07/04 12:43:22 millert Exp $ */ +/* $OpenBSD: curses.h,v 1.35 1999/07/11 14:13:46 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -50,7 +50,7 @@ /* These are defined only in curses.h, and are used for conditional compiles */ #define NCURSES_VERSION_MAJOR 5 #define NCURSES_VERSION_MINOR 0 -#define NCURSES_VERSION_PATCH 990703 +#define NCURSES_VERSION_PATCH 990710 /* This is defined in more than one ncurses header, for identification */ #undef NCURSES_VERSION 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; } } |