From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57599 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Patch for filesystems that do not support chmod. Date: Thu, 20 May 2004 21:58:30 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1085083367 32693 80.91.224.253 (20 May 2004 20:02:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 May 2004 20:02:47 +0000 (UTC) Original-X-From: ding-owner+M6139@lists.math.uh.edu Thu May 20 22:02:33 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQtkN-0004CB-00 for ; Thu, 20 May 2004 22:02:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BQtk9-0000q0-00; Thu, 20 May 2004 15:02:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BQtk1-0000pu-00 for ding@lists.math.uh.edu; Thu, 20 May 2004 15:02:09 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BQtk1-0002iK-4c for ding@lists.math.uh.edu; Thu, 20 May 2004 15:02:09 -0500 Original-Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by justine.libertine.org (Postfix) with ESMTP id B4C993A0035 for ; Thu, 20 May 2004 15:02:08 -0500 (CDT) Original-Received: from [195.215.224.173] (0xc3d7e0ad.esnxr4.ras.tele.dk [195.215.224.173]) by pfepb.post.tele.dk (Postfix) with ESMTP id EAC1F5EE041 for ; Thu, 20 May 2004 22:02:06 +0200 (CEST) Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: (Paul Stodghill's message of "Thu, 20 May 2004 13:08:41 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57599 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57599 Paul Stodghill writes: >> If XEmacs+cygwin is the odd man out, I think it would be better to >> make it consistant with the other ports. > > XEmacs will raise an exception on any platform when the call to chmod > fails. OK, I'm just surprised that we haven't seen this problem before -- some of those set-file-modes lines have been there for a long time, AFAIK. Does somone know if Emacs behaves in the same way as XEmacs? > This is not a platform bug. IMO, Gnus should not request a file mode > that the underlying filesystem cannot support. I don't know ... if you're requesting something which the semantics of the file system doesn't support, I think it's legitimate to just do something reasonable and not throw an error -- e.g. if you request +x on ms-windows then it could safely be ignored because all files on ms-windows are executable anyway. The Common Lisp standard recommends this type of approach: An implementation is required to recognize all of the =E2=80=98open=E2=80= =99 keyword options and to do something reasonable in the context of the host operating system. For example, if a file system does not support distinct file versions and does not distinguish the notions of deletion and expunging, :new-version might be treated the same as :rename or :supersede, and :rename-and-delete might be treated the same as :supersede. --=20 Jesper Harder