aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-07-08 14:03:17 +0200
committerMichael Albinus2019-07-08 14:03:17 +0200
commitd750b37cece666716d234c6e529a3f5d9bc56bd5 (patch)
treef9c54a2ce7e168946b3a9b1998c16a56b81c05fa
parent8d5cdd688f5dd39c8e667f9c6c2c4876c7fdc564 (diff)
downloademacs-d750b37cece666716d234c6e529a3f5d9bc56bd5.tar.gz
emacs-d750b37cece666716d234c6e529a3f5d9bc56bd5.zip
Allow chown/chgrp for remote directories on w32
* lisp/dired-aux.el (dired-do-chgrp, dired-do-chown): Allow them for remote directories, even when run on w32. See <https://emacs.stackexchange.com/questions/51477/chown-with-dired-over-tramp-from-windows-machine>.
-rw-r--r--lisp/dired-aux.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 5e4ec4d1ecb..d83e57d58dc 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -410,7 +410,8 @@ into the minibuffer."
410Type M-n to pull the file attributes of the file at point 410Type M-n to pull the file attributes of the file at point
411into the minibuffer." 411into the minibuffer."
412 (interactive "P") 412 (interactive "P")
413 (if (memq system-type '(ms-dos windows-nt)) 413 (if (and (memq system-type '(ms-dos windows-nt))
414 (not (file-remote-p default-directory)))
414 (error "chgrp not supported on this system")) 415 (error "chgrp not supported on this system"))
415 (dired-do-chxxx "Group" "chgrp" 'chgrp arg)) 416 (dired-do-chxxx "Group" "chgrp" 'chgrp arg))
416 417
@@ -420,7 +421,8 @@ into the minibuffer."
420Type M-n to pull the file attributes of the file at point 421Type M-n to pull the file attributes of the file at point
421into the minibuffer." 422into the minibuffer."
422 (interactive "P") 423 (interactive "P")
423 (if (memq system-type '(ms-dos windows-nt)) 424 (if (and (memq system-type '(ms-dos windows-nt))
425 (not (file-remote-p default-directory)))
424 (error "chown not supported on this system")) 426 (error "chown not supported on this system"))
425 (dired-do-chxxx "Owner" dired-chown-program 'chown arg)) 427 (dired-do-chxxx "Owner" dired-chown-program 'chown arg))
426 428