[Top][All Lists]

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

Re: No POSIX "id" command, but have "gid" - how to use that?

From: Yuji Yamano
Subject: Re: No POSIX "id" command, but have "gid" - how to use that?
Date: Wed, 24 Sep 2014 11:14:26 +0900 (JST)

Which version of emacs do you use?

I had a quick look at emacs 24.3. "id" is hard coded in tramp-get-remote-id.
You might want to override the function.

(defun tramp-get-remote-id (vec)
  (with-tramp-connection-property vec "id"
    (tramp-message vec 5 "Finding POSIX `id' command")
     (catch 'id-found
       (let ((dl (tramp-get-remote-path vec))
         (while (and dl (setq result (tramp-find-executable vec "id" dl t t)))
           ;; Check POSIX parameter.
           (when (tramp-send-command-and-check vec (format "%s -u" result))
             (throw 'id-found result))
           (setq dl (cdr dl)))))
     (tramp-error vec 'file-error "Couldn't find a POSIX `id' command"))))

On Tue, 23 Sep 2014 14:34:02 +0000 (UTC), Skip Montanaro <address@hidden> wrote:

> I've stumbled on an old problem:
> byte-code: Couldn't find a POSIX `id' command
> I am trying to fetch a file from a Solaris 10 system. The
> only id commands are in /bin and /usr/bin (likely the same
> executable). I do have a GNU "gid" command. Setting
> tramp-remote-path won't help. is there a variable I can
> set which either specifies the complete path to my gid
> command or which allows me to say that "id" is actually
> spelled "gid"? A quick check of the various tramp 

Yuji Yamano

reply via email to

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