]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-chown-program): Try /usr/sbin/chown.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Jun 1996 14:57:04 +0000 (14:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Jun 1996 14:57:04 +0000 (14:57 +0000)
lisp/dired.el

index 76ce9e8d45d48da54fe4896fdb1389b8db642929..65f8a4e6dee38e6269d007f40b2a85f3ef7af324 100644 (file)
@@ -49,7 +49,10 @@ may contain even `F', `b', `i' and `s'.  See also the variable
 ;;;###autoload
 (defvar dired-chown-program
   (if (memq system-type '(hpux dgux usg-unix-v irix linux lignux))
-      "chown" "/etc/chown")
+      "chown"
+    (if (file-exists-p "/usr/sbin/chown")
+       "/usr/sbin/chown"
+      "/etc/chown"))
   "Name of chown command (usually `chown' or `/etc/chown').")
 
 (defvar dired-chmod-program