Petr Hracek c88b79
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el
Petr Hracek c88b79
index 1c9b4ce..6d43d23 100644
Petr Hracek c88b79
--- a/lisp/gnus/gnus-fun.el
Petr Hracek c88b79
+++ b/lisp/gnus/gnus-fun.el
Petr Hracek c88b79
@@ -250,20 +250,21 @@ colors of the displayed X-Faces."
Petr Hracek c88b79
   (interactive)
Petr Hracek c88b79
   (shell-command "xawtv-remote snap ppm")
Petr Hracek c88b79
   (let ((file nil)
Petr Hracek c88b79
+    (tempfile (make-temp-file "gnus-face-" nil "*.ppm"))
Petr Hracek c88b79
 	result)
Petr Hracek c88b79
     (while (null (setq file (directory-files "/tftpboot/sparky/tmp"
Petr Hracek c88b79
 					     t "snap.*ppm")))
Petr Hracek c88b79
       (sleep-for 1))
Petr Hracek c88b79
     (setq file (car file))
Petr Hracek c88b79
     (shell-command
Petr Hracek c88b79
-     (format "pnmcut -left 110 -top 30 -width 144 -height 144 '%s' | pnmscale -width 48 -height 48 | ppmtopgm > /tmp/gnus.face.ppm"
Petr Hracek c88b79
-	     file))
Petr Hracek c88b79
+     (format "pnmcut -left 110 -top 30 -width 144 -height 144 '%s' | pnmscale -width 48 -height 48 | ppmtopgm >> %s"
Petr Hracek c88b79
+	     file tempfile))
Petr Hracek c88b79
     (let ((gnus-convert-image-to-face-command
Petr Hracek c88b79
 	   (format "cat '%%s' | ppmquant %%d | ppmchange %s | pnmtopng"
Petr Hracek c88b79
 		   (gnus-fun-ppm-change-string))))
Petr Hracek c88b79
-      (setq result (gnus-face-from-file "/tmp/gnus.face.ppm")))
Petr Hracek c88b79
+      (setq result (gnus-face-from-file tempfile)))
Petr Hracek c88b79
     (delete-file file)
Petr Hracek c88b79
-    ;;(delete-file "/tmp/gnus.face.ppm")
Petr Hracek c88b79
+    ;;(delete-file tempfile)
Petr Hracek c88b79
     result))
Petr Hracek c88b79
 
Petr Hracek c88b79
 (defun gnus-fun-ppm-change-string ()