diff --git a/CHANGES b/CHANGES index 894647d993..ea2ef1214d 100644 --- a/CHANGES +++ b/CHANGES @@ -9,7 +9,8 @@ xfrout_ctx_destroy() being called with a partially initaliased structure. -1603. [placeholder] rt10929. +1603. [bug] nsupdate: set interactive based on isatty(). + [RT# 10929] 1602. [placeholder] rt10925. diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 3afcb65087..46d36097a5 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.130 2004/03/05 04:58:15 marka Exp $ */ +/* $Id: nsupdate.c,v 1.131 2004/04/10 04:03:16 marka Exp $ */ #include @@ -1953,6 +1953,8 @@ main(int argc, char **argv) { input = stdin; + interactive = ISC_TF(isatty(0)); + isc_app_start(); parse_args(argc, argv); diff --git a/config.h.win32 b/config.h.win32 index b6b1f7c38d..152f4f893b 100644 --- a/config.h.win32 +++ b/config.h.win32 @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: config.h.win32,v 1.8 2004/03/16 05:22:15 marka Exp $ */ +/* $Id: config.h.win32,v 1.9 2004/04/10 04:03:16 marka Exp $ */ /* * win32 configuration file @@ -192,6 +192,7 @@ typedef long off_t; #define open _open #define close _close #define write _write +#define isatty _isatty #ifndef _WINSOCKAPI_ #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */