bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Re: test mode


From: Gerry Reno
Subject: [Bug-tar] Re: test mode
Date: Sat, 27 Sep 2003 21:01:43 -0700 (PDT)

  Ok, using -f /dev/null would work for this with unices but not for
msdos.  The msdos version works with the following patch:

-------------------------------------------------------------
$diff -u buffer.c.prepatch buffer.c
--- buffer.c.prepatch   2003-09-10 18:50:26.218750000 -0400
+++ buffer.c    2003-09-27 23:56:24.281250000 -0400
@@ -823,6 +823,16 @@
   else
     ar_dev = 0;

+#else
+  /* DOS/Windows: Detect if outputting to "nul".  */
+  {
+    static char const dev_null[] = "nul";
+    struct stat dev_null_stat;
+
+    dev_null_output =
+      (strcmp (archive_name_array[0], dev_null) == 0
+       || (! _isrmt (archive)));
+  }
 #endif /* not MSDOS */

 #if MSDOS
-------------------------------------------------------------




=====
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]