From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51773: 28.0.60; Issue writing files over WebDAV on MS-Windows Date: Thu, 11 Nov 2021 21:43:26 +0200 Message-ID: <83pmr6zdep.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51773-done@debbugs.gnu.org To: Ioannis Kappas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 11 20:44:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlFzi-0005bT-QZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 20:44:23 +0100 Original-Received: from localhost ([::1]:56170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlFzh-0005gt-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 14:44:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlFzO-0005e8-G7 for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 14:44:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlFzO-0000mM-7E for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 14:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlFzO-00023Q-5R for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 14:44:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Nov 2021 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51773 X-GNU-PR-Package: emacs Mail-Followup-To: 51773@debbugs.gnu.org, eliz@gnu.org, ioannis.kappas@gmail.com Original-Received: via spool by 51773-done@debbugs.gnu.org id=D51773.16366598197853 (code D ref 51773); Thu, 11 Nov 2021 19:44:01 +0000 Original-Received: (at 51773-done) by debbugs.gnu.org; 11 Nov 2021 19:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:42363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlFz0-00022a-TP for submit@debbugs.gnu.org; Thu, 11 Nov 2021 14:43:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlFyz-00022O-P4 for 51773-done@debbugs.gnu.org; Thu, 11 Nov 2021 14:43:38 -0500 Original-Received: from [2001:470:142:3::e] (port=41488 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlFyu-0000gb-H6; Thu, 11 Nov 2021 14:43:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gIAFOR/aueEbwhVw//wn9/Cg8VANQJ6IXZoC3rP8zoA=; b=pJjHrgqPqyhR F/bZ2T05a4+edyt/ttH1klBP3QTWDVa6xYSMa4fCPWz4i+NEnODcXx51kIDYMX8LrDFcdiVKkOd/2 uPKpC7A6bWI+up4LLm9EJ4m096c4wRwRvlgzxiQ/ZDHVzT3ZfI37hXSsQjjl/HXhHG254OkzWK/bK V1rBWXZFUySaJ8gqNd7pyiRa3gzfpo1ZgcK95iYLmwa7MvUfBEMy0t9s10afD70J8Ae3+HWWxQ5Fd CBcoXGovMnE7dRjToXBJ3VzcNklIlj6/kEajOoU3eGmC6wTcZjn6Q8ijfOney1pwDfALsZJGjVAR1 MALqID6Z74NmllersI96ug==; Original-Received: from [87.69.77.57] (port=3471 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlFyu-0005px-4z; Thu, 11 Nov 2021 14:43:32 -0500 In-Reply-To: (message from Ioannis Kappas on Thu, 11 Nov 2021 19:22:16 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219680 Archived-At: > From: Ioannis Kappas > Date: Thu, 11 Nov 2021 19:22:16 +0000 > > Thus a solution, which I have tested it to work, is to add the > ERROR_INVALID_FUNCTION to the predicate > > diff --git a/src/w32.c b/src/w32.c > index 9fe698d28d..0e066b12e7 100644 > --- a/src/w32.c > +++ b/src/w32.c > @@ -6614,10 +6614,11 @@ acl_get_file (const char *fname, acl_type_t type) > || err == ERROR_INVALID_NAME) > errno = ENOENT; > else if (err == ERROR_NOT_SUPPORTED > - /* ERROR_ACCESS_DENIED is what we get for a volume > - mounted by WebDAV, which evidently doesn't > - support ACLs. */ > - || err == ERROR_ACCESS_DENIED) > + /* ERROR_ACCESS_DENIED or ERROR_INVALID_FUNCTION is > + what we get for a volume mounted by WebDAV, > + which evidently doesn't support ACLs. */ > + || err == ERROR_ACCESS_DENIED > + || err == ERROR_INVALID_FUNCTION) > errno = ENOTSUP; > else > errno = EIO; > > Please let me know if you require more info. Thanks, installed on the emacs-28 branch (there was one more place which needed the same fix, a few lines above the one you fixed).