changeset 42231:054cf5ce349b

(jka-compr-partial-uncompress): Use null-device instead of a literal /dev/null. Reported by Jens Schmidt <schmidt@mathematik.uni-kl.de>.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 21 Dec 2001 12:43:55 +0000
parents 5c346977392d
children e02bedfd19e4
files lisp/jka-compr.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/jka-compr.el	Fri Dec 21 12:39:25 2001 +0000
+++ b/lisp/jka-compr.el	Fri Dec 21 12:43:55 2001 +0000
@@ -300,7 +300,7 @@
 	      (or (memq (call-process
 			 jka-compr-shell infile t nil "-c"
 			 (format
-			  "%s %s 2> %s | %s bs=%d skip=%d %s 2> /dev/null"
+			  "%s %s 2> %s | %s bs=%d skip=%d %s 2> %s"
 			  prog
 			  (mapconcat 'identity args " ")
 			  err-file
@@ -310,7 +310,8 @@
 			  ;; dd seems to be unreliable about
 			  ;; providing the last block.  So, always
 			  ;; read one more than you think you need.
-			  (if count (format "count=%d" (1+ count)) "")))
+			  (if count (format "count=%d" (1+ count)) "")
+			  null-device))
 			jka-compr-acceptable-retval-list)
 		  (jka-compr-error prog args infile message err-file))
 	    (jka-compr-delete-temp-file err-file)))