[Top][All Lists]

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

Using null-device in smime.el

From: Peter Cooper Jr.
Subject: Using null-device in smime.el
Date: Sat, 22 Nov 2008 13:39:22 -0500
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (windows-nt)

I don't know if anyone else uses Gnus on Emacs on Windows the way I
do, but one thing I always change when setting up a new Gnus
installation is that smime.el refers directly to /dev/null, which of
course doesn't exist on Windows. Windows does have a similar NUL
device, and it looks like the null-device variable contains the
correct null filename to use for the platform. The following patch
represents the change that I make:

--8<---------------cut here---------------start------------->8---
--- smime.el.orig       Sat Mar 01 17:03:36 2008
+++ smime.el    Wed Nov 19 09:06:48 2008
@@ -381,7 +381,7 @@
     (if smime-crl-check
        (add-to-list 'CAs smime-crl-check))
     (if (apply 'smime-call-openssl-region b e (list smime-details-buffer t)
-              "smime" "-verify" "-out" "/dev/null" CAs)
+              "smime" "-verify" "-out" null-device CAs)
       (insert-buffer-substring smime-details-buffer)
@@ -393,7 +393,7 @@
   (if (apply 'smime-call-openssl-region b e (list smime-details-buffer t)
-            "smime" "-verify" "-noverify" "-out" '("/dev/null"))
+            "smime" "-verify" "-noverify" "-out" (list null-device))
     (insert-buffer-substring smime-details-buffer)
--8<---------------cut here---------------end--------------->8---

I just thought that this might be useful to somebody else, and perhaps
the change should be made in the actual codebase.

Peter C.

reply via email to

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