From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#4673: 23.1; UNC paths of the form "//DFSROOT/SHARE" Date: Thu, 8 Oct 2009 14:43:21 +0100 Message-ID: Reply-To: Richard Copley , 4673@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1255010872 5960 80.91.229.12 (8 Oct 2009 14:07:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 14:07:52 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 16:07:42 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 1Mvted-0001Us-3H for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 16:07:39 +0200 Original-Received: from localhost ([127.0.0.1]:34145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvtec-0006Pe-IF for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 10:07:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvteI-0005zi-9H for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 10:07:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvteD-0005nr-CL for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 10:07:17 -0400 Original-Received: from [199.232.76.173] (port=49277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvteC-0005nQ-VK for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 10:07:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52435) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvteC-0003Z3-0J for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 10:07:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n98E79gp026335; Thu, 8 Oct 2009 07:07:09 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n98Do5Uv022661; Thu, 8 Oct 2009 06:50:05 -0700 Resent-Date: Thu, 8 Oct 2009 06:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Richard Copley Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 08 Oct 2009 13:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4673 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125500941121639 (code B ref -1); Thu, 08 Oct 2009 13:50:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Oct 2009 13:43:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n98DhTxZ021628 for ; Thu, 8 Oct 2009 06:43:30 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvtHF-0008UI-65 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 09:43:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvtH9-0008SR-UG for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 09:43:28 -0400 Original-Received: from [199.232.76.173] (port=43581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvtH9-0008SI-Qo for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 09:43:23 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:50948) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvtH9-0006xJ-Et for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2009 09:43:23 -0400 Original-Received: by bwz20 with SMTP id 20so5725655bwz.42 for ; Thu, 08 Oct 2009 06:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XK+mTquktwqbWddRpUGA3eK1JqqXJCq5ybgyqPTiA2Y=; b=UgFRHh4IsPYy+piHH2U6OM3mgHwqT3nsnp/FNBLwLPd02mUGm1FILCiHJSag1Q7tfy o6Pud1LfoaA+IlVaQKwXZgLxCW+S5Qfv6xaNtJYK+54kBr4XNct6iVBVE2UMjapUvU0g RmNor3+F2ArOaRvBaZkJry0noU7Shh0oln5Z4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qgjXLXPqG3KpfxeZ6ESnGHYH1rgOOXt7JQbb2YznTLYfYzx2q3+4g85DnSP31Hg3RO yZYZrEyIRTn1Uk82DgHqSUwnDP/3UVrnJ1GID56A2el9K1ji2vbhidGImbtdDBQ9eOGA O9h95YWxS/yi7MshuEqKDt72O63ywpf88MLjk= Original-Received: by 10.103.84.1 with SMTP id m1mr538267mul.34.1255009401848; Thu, 08 Oct 2009 06:43:21 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 08 Oct 2009 10:07:17 -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:31785 Archived-At: On Windows in a domain environment, suppose "//DFSROOT" is a domain-hosted DFS root, with a share "//DFSROOT/SHARE". (Typically, DFSROOT will be the name of the domain.) Interactively, using "C-x C-f / / D F S R O O T / S H A R E RET" causes an error: "completion--some: Opening directory: invalid argument, //DFSROOT/". This occurs in Emacs 23.1 but not in Emacs 22.3. I haven't looked into the completion code to see why. This is a bug. Note: The list returned by the form (directory-files-and-attributes "//DFSROOT/SHARE") contains the list ("..") as an element. Evaluating (directory-files-and-attributes "//DFSROOT") signals an error "Opening directory: invalid argument, //DFSROOT". This occurs on Emacs 22.3 as well as Emacs 23.1 and is probably the correct behaviour. Therefore, in Emacs 23.1 but not in Emacs 22.3, when visiting the directory "//DFSROOT/SHARE" by evaluating (find-file "//DFS-ROOT/SHARE"), the function `ls-lisp-insert-directory' fails, because it does not account for the possibility that an entry in the list returned by `directory-files-and-attributes' may be missing the attribute data. The error signalled is "Format specifier doesn't match argument type", arising from the form (format "%d" fuid) where fuid is nil. This is a bug. To reproduce, run Emacs 23.1 in a domain environment where domain-hosted DFS is in use, and visit a directory of the form "//DOMAIN/SHARE" or "//DFSROOT/SHARE" by evaluating the expression (find-file "//DFSROOT/SHARE"). Note that the more familiar UNC paths of the form "//SERVER/SHARE", where SERVER is the name of a computer, will not cause these errors. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f / / u h b / w c l C-g M-: ( f i n d - f i l e SPC " / / u h b / w c l " ) q M-x r e p o r t SPC e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. completion--some: Opening directory: invalid argument, //uhb/ Quit Entering debugger... Back to top level.