From: Richard M. Stallman Date: Sat, 24 Aug 2002 03:14:32 +0000 (+0000) Subject: (Fcall_process): Remove /: from program name. X-Git-Tag: ttn-vms-21-2-B4~13580 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ee8f447ce806ee96763752c351216a0661599d8;p=emacs.git (Fcall_process): Remove /: from program name. --- diff --git a/src/callproc.c b/src/callproc.c index 5476be06537..d1e62de0705 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -389,6 +389,13 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) emacs_close (filefd); report_file_error ("Searching for program", Fcons (args[0], Qnil)); } + + /* If program file name starts with /: for quoting a magic name, + discard that. */ + if (SBYTES (path) > 2 && SREF (path, 0) == '/' + && SREF (path, 1) == ':') + path = Fsubstring (path, make_number (2), Qnil); + new_argv[0] = SDATA (path); if (nargs > 4) {