MoveFileW succeeding with cygwin 1.7.1 where it failed with cygwin 1.5.25?

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Tue Feb 9 05:00:00 GMT 2010


On 02/08/2010 11:48 PM, David Byron wrote:
> On 8-feb-10 David Byron wrote:
>
>> I've found a difference in behavior between cygwin 1.5.25
>> and cygwin 1.7.1 that I don't understand.  Renaming a file
>> using MoveFileW fails with access denied under cygwin
>> 1.5.25 as expected, but it works under 1.7.
>
> I figured out the difference.  My executable that calls MoveFileW spawned by
> the version of bash I've got in my cygwin 1.7.1 installation has
> SeDebugPrivilege and SeBackupPrivilege enabled.  With the version of bash
> I've got in my cygwin 1.5.25 installation those privileges are disabled.

So your user must be part of the administrators group then.  Adminstrators
have access even when permissions are set to deny them, just like on
Linux.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list