From: Michael Heerdegen <michael_heerdegen@web.de>
To: 44343@debbugs.gnu.org
Subject: bug#44343: 28.0.50; wdired: spurious error message when changing permissions
Date: Sat, 31 Oct 2020 15:38:18 +0100 [thread overview]
Message-ID: <87pn4ycvfp.fsf@web.de> (raw)
Hello,
here is the recipe:
#+begin_src emacs-lisp
(require 'wdired)
(setq wdired-allow-to-change-permissions 'advanced)
#+end_src
Then visit some (writable) directory with dired, M-x
wdired-change-to-wdired-mode, and then change a permission bit of some
file. Then C-c C-c. I get this error message:
1 rename actions failed--type ? for details
*Dired log* contains:
| chmod 416 ‘/home/micha/arena.result’ failed
|
| 1 rename actions failed
Actually there is no need for the error message; changing permission
bits works fine, it succeeds without problems.
But when I read the implementation of `wdired-do-perm-changes'
correctly, it uses the return value of `set-file-modes' to decide
whether setting modes succeeded. This function always returns nil,
however.
The second, minor issue is that a problem with changing permission bits
is reported as a failed "rename action".
TIA,
Michael.
In GNU Emacs 28.0.50 (build 85, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
of 2020-10-31 built on drachen
Repository revision: f9304de9e09ae621e8790b4f45ab716c43485ce9
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid
next reply other threads:[~2020-10-31 14:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-31 14:38 Michael Heerdegen [this message]
2020-10-31 15:45 ` bug#44343: 28.0.50; wdired: spurious error message when changing permissions Andreas Schwab
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn4ycvfp.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=44343@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).