Fix comparisons of file ownership on MS-Windows for the Administrator user.
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Mar 2011 12:19:08 +0000 (14:19 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Mar 2011 12:19:08 +0000 (14:19 +0200)
commit2920e68d73e0009f368e817207964efaff751f85
tree26c29a20149fc8539acb28ee9237310e311d9c04
parent69cc79e9e067543c5b20adcea1d756f1dd9569dc
Fix comparisons of file ownership on MS-Windows for the Administrator user.

 lisp/files.el (file-ownership-preserved-p): Pass `integer' as an
 explicit 2nd argument to `file-attributes'.  If the file's owner
 is the Administrators group on Windows, and the current user is
 Administrator, consider that a match.
 lisp/server.el (server-ensure-safe-dir): Consider server directory
 safe on MS-Windows if its owner is the Administrators group while
 the current Emacs user is Administrator.  Use `=' to compare
 numerical UIDs, since they could be integers or floats.
lisp/ChangeLog
lisp/files.el
lisp/server.el