Gnus development mailing list
 help / color / mirror / Atom feed
From: Jesper Harder <harder@ifa.au.dk>
Subject: Re: Patch for filesystems that do not support chmod.
Date: Thu, 20 May 2004 21:58:30 +0200	[thread overview]
Message-ID: <m31xleeuqh.fsf@defun.localdomain> (raw)
In-Reply-To: <r99smdvc9gm.fsf@barney-xp.cs.cornell.edu> (Paul Stodghill's message of "Thu, 20 May 2004 13:08:41 -0400")

Paul Stodghill <stodghil@cs.cornell.edu> 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 ‘open’ 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.

-- 
Jesper Harder                                <http://purl.org/harder/>



  parent reply	other threads:[~2004-05-20 19:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19 12:53 Paul Stodghill
2004-05-19 13:26 ` Jesper Harder
2004-05-19 23:39   ` Lars Magne Ingebrigtsen
2004-05-20  1:08     ` Jesper Harder
2004-05-20 16:43       ` Lars Magne Ingebrigtsen
2004-05-20 17:08       ` Paul Stodghill
2004-05-20 17:28         ` Paul Stodghill
2004-05-20 23:40           ` Jon Ericson
2004-05-22 23:29           ` Lars Magne Ingebrigtsen
2004-05-20 19:58         ` Jesper Harder [this message]
2004-05-20 17:04   ` Paul Stodghill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m31xleeuqh.fsf@defun.localdomain \
    --to=harder@ifa.au.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).