[Top][All Lists]

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

Re: vc-file-clearprops error on Win32

From: Michael Albinus
Subject: Re: vc-file-clearprops error on Win32
Date: Wed, 24 Oct 2007 09:22:04 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

Kyle VanderBeek <address@hidden> writes:

> I do have to say that the "swallow all chown errors" fix might not be
> the right way to go about it; it seems like you're asking for a silent
> error sometime down the road.  But I'm not going to tell you how to do 
> things.

It might look rude, but what else but "chown" one can use on Win32?
I could clean the code like this:

(when (executable-find "chown")
   "chown" nil nil nil
   (format "%d:%d" uid gid) (tramp-shell-quote-argument filename)))

But the result would be the same. With `condition-case' I simply trap
the error `call-process' raises in this situation, see the doc string:

"If executable PROGRAM can't be found as an executable, `call-process'
signals a Lisp error."

Other Lisp errors are not raised by `call-process'; execution problems
could be checked by the result of `call-process', which is the return
code of the process execution.

> Thank you again!  You made my day.

Best regards, Michael.

reply via email to

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