From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp Date: Tue, 7 Apr 2009 09:57:18 -0700 (PDT) Message-ID: <200904071657.n37GvIau023055@godzilla.ics.uci.edu> References: <87vdt2ndkt.fsf@tux.homenetwork> Reply-To: Dan Nicolaescu , 1741@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239125060 3302 80.91.229.12 (7 Apr 2009 17:24:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2009 17:24:20 +0000 (UTC) Cc: 1741@emacsbugs.donarmstrong.com To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 07 19:25:38 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LrF3A-0006Lt-Pr for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2009 19:25:29 +0200 Original-Received: from localhost ([127.0.0.1]:38366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrF1m-0003GN-6w for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Apr 2009 13:24:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrF1h-0003EX-Al for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2009 13:23:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrF1b-00039p-SO for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2009 13:23:56 -0400 Original-Received: from [199.232.76.173] (port=60660 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrF1b-00039K-CQ for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2009 13:23:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36339) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrF1a-00082M-PA for bug-gnu-emacs@gnu.org; Tue, 07 Apr 2009 13:23:51 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37HNmVr008921; Tue, 7 Apr 2009 10:23:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n37H56rE003087; Tue, 7 Apr 2009 10:05:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Tue, 07 Apr 2009 17:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1741 X-Emacs-PR-Package: emacs,vc X-Emacs-PR-Keywords: Original-Received: via spool by 1741-submit@emacsbugs.donarmstrong.com id=B1741.1239123463451 (code B ref 1741); Tue, 07 Apr 2009 17:05:06 +0000 Original-Received: (at 1741) by emacsbugs.donarmstrong.com; 7 Apr 2009 16:57:43 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n37Gve0n000420 for <1741@emacsbugs.donarmstrong.com>; Tue, 7 Apr 2009 09:57:41 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n37GvIEB022585; Tue, 7 Apr 2009 09:57:18 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n37GvIau023055; Tue, 7 Apr 2009 09:57:18 -0700 (PDT) In-Reply-To: <87vdt2ndkt.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Tue, 30 Dec 2008 11:48:34 +0100") Original-Lines: 64 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n37GvIEB022585 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 07 Apr 2009 13:23:56 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26984 Archived-At: Thierry Volpiatto writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > Hi, > i can't register a file with vc/rcs when i am logged as root throught > tramp. > 1) C-x v i > 2) Create RCS dir (y/n) ==> The dir is created. > 3) But now ==> _Here the debug output_: > > ,---- > | Debugger entered--Lisp error: (wrong-type-argument stringp nil) > | file-exists-p(nil) > | vc-insert-file(nil "^[0-9]") > | vc-rcs-fetch-master-state("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-rcs-working-revision("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | apply(vc-rcs-working-revision "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-call-backend(RCS working-revision "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-working-revision("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-default-mode-line-string(RCS "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | apply(vc-default-mode-line-string RCS "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-call-backend(RCS mode-line-string "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-mode-line("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | run-hook-with-args(vc-mode-line "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") > | vc-resynch-window("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh" t t) > | vc-resynch-buffer("/su:root@tux.homenetwork:/usr/local/bin/editeur.sh" t t) > | > | [...] > | > | [G70600 G70601 rev comment file --cl-dolist-temp-- > | message "Registering %s... " mapc vc-file-clearprops vc-call-backend > | register nil vc-file-setprop > | vc-backend "Registering %s... done"] 6] (quote --files--) (quote --backend--) --cl-rest--))) > | vc-register(nil) > | call-interactively(vc-register nil nil) > `---- > > _And if i want to delete RCS directory from dired_: > > ,---- > | (file-error Couldn't delete /su:root@tux.homenetwork:/usr/local/bin/RCS) > `---- > > However if i open an emacs root session i can register my file as > normal. What happens is that vc-check-master-templates gets called with "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh", and it calls (file-exists-p "/su:root@tux.homenetwork:/usr/local/bin/editeur.sh") which returns nil. There's a few other `file-exists-p' calls in vc*.el, so it's likely that other things can go wrong if this one instance is somehow fixed. If someone familiar with what tramp needs wants to get this to work, about all vc calls need to be tested to make sure they don't do something that tramp can't do.