]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1603. [bug] nsupdate: set interactive based on isatty().
authorMark Andrews <marka@isc.org>
Sat, 10 Apr 2004 04:03:16 +0000 (04:03 +0000)
committerMark Andrews <marka@isc.org>
Sat, 10 Apr 2004 04:03:16 +0000 (04:03 +0000)
                        [RT# 10929]

CHANGES
bin/nsupdate/nsupdate.c
config.h.win32

diff --git a/CHANGES b/CHANGES
index 894647d9930a8f1378797910d994ee3baf1e1858..ea2ef1214d1fd2bb2472eac0c71809852fa5e413 100644 (file)
--- 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.
 
index 3afcb650871685bbeb0dafe8598222379bd65166..46d36097a51ec2e7f9397c125a8ee68ebfe3b283 100644 (file)
@@ -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 <config.h>
 
@@ -1953,6 +1953,8 @@ main(int argc, char **argv) {
 
        input = stdin;
 
+       interactive = ISC_TF(isatty(0));
+
        isc_app_start();
 
        parse_args(argc, argv);
index b6b1f7c38dd1858b1f607cf471567721ca64b6d7..152f4f893bfee5e34957455b42973f5b92a00d6c 100644 (file)
@@ -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 */