* lisp/net/ldap.el (ldap-search-internal): Don't use eval.
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 9 Jan 2011 19:34:19 +0000 (20:34 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 9 Jan 2011 19:34:19 +0000 (20:34 +0100)
lisp/ChangeLog
lisp/net/ldap.el

index 6da2fe1..5cab10d 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-09  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * net/ldap.el (ldap-search-internal): Don't use eval.
+
 2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 
        * subr.el (read-char-choice): Use read-key.
index 066dbd8..88284af 100644 (file)
@@ -1,7 +1,7 @@
 ;;; ldap.el --- client interface to LDAP for Emacs
 
 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-;;   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+;;   2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 
 ;; Author: Oscar Figueiredo <oscar@cpe.fr>
 ;; Maintainer: FSF
@@ -556,13 +556,9 @@ an alist of attribute/value pairs."
       (if (and sizelimit
               (not (equal "" sizelimit)))
          (setq arglist (nconc arglist (list (format "-z%s" sizelimit)))))
-      (eval `(call-process ldap-ldapsearch-prog
-                          nil
-                          buf
-                          nil
-                          ,@arglist
-                          ,@ldap-ldapsearch-args
-                          ,@filter))
+      (apply #'call-process ldap-ldapsearch-prog
+            nil buf nil
+            (append arglist ldap-ldapsearch-args filter))
       (insert "\n")
       (goto-char (point-min))