From 352059d4b140fa3a1ae840f3f539fc92b49f7c8a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 1 Mar 2006 23:14:25 +0000 Subject: [PATCH] * sec_helper.cc (set_cygwin_privileges): Request SE_BACKUP_NAME privileges. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/sec_helper.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9989d55c2..eaf2dce98 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-03-01 Corinna Vinschen + + * sec_helper.cc (set_cygwin_privileges): Request SE_BACKUP_NAME + privileges. + 2006-03-01 Corinna Vinschen * fhandler_proc.cc (fhandler_proc::fstat): Always return fixed link diff --git a/winsup/cygwin/sec_helper.cc b/winsup/cygwin/sec_helper.cc index 4abbfddcd..d8cd16062 100644 --- a/winsup/cygwin/sec_helper.cc +++ b/winsup/cygwin/sec_helper.cc @@ -439,6 +439,7 @@ void set_cygwin_privileges (HANDLE token) { set_privilege (token, SE_RESTORE_PRIV, true); + set_privilege (token, SE_BACKUP_PRIV, true); set_privilege (token, SE_CHANGE_NOTIFY_PRIV, !allow_traverse); }