delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Reply-To: | <dbyron AT dbyron DOT com> |
From: | "David Byron" <dbyron AT dbyron DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <8DC676DEED33454A9B5D962E4CB26638 AT pleaset> |
Subject: | RE: MoveFileW succeeding with cygwin 1.7.1 where it failed with cygwin 1.5.25? |
Date: | Mon, 8 Feb 2010 20:48:09 -0800 |
Message-ID: | <D092A0E060814446B4665EB0A6FBEDC3@pleaset> |
MIME-Version: | 1.0 |
In-Reply-To: | <8DC676DEED33454A9B5D962E4CB26638@pleaset> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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. When I disable the SeRestorePrivilege before calling MoveFileW, it fails under cygwin 1.7.1 as well with access denied. SeRestorePrivilege enabled by default ------------------------------------- $ cygcheck -f /usr/bin/bash bash-3.2.49-23 $ uname -r 1.7.1(0.218/5/3) SeRestorePrivilege disabled by default -------------------------------------- $ cygcheck -f /usr/bin/bash bash-3.2.25-17 $ uname -r 1.5.25(0.156/4/2) -DB -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |