Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com To: cygwin-apps AT cygwin DOT com Subject: [PATCH] Allow updating packages without administrative priviledge Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Kazuhiro Fujieda Date: 11 Nov 2001 19:21:54 +0900 Message-ID: Lines: 31 X-Mailer: Gnus v5.3/Emacs 19.34 I'd like to update my Cygwin environment installed for all users without administrative priviledge. Setup.exe seems to work in this case, but doesn't take account of the system mount table. The following patch can fix it. 2001-11-11 Kazuhiro Fujieda * mount.cc (read_mounts): Allow reading system mount table without administrative priviledge. Index: mount.cc =================================================================== RCS file: /cvs/src/src/winsup/cinstall/mount.cc,v retrieving revision 2.6 diff -u -p -r2.6 mount.cc --- mount.cc 2001/10/31 13:15:05 2.6 +++ mount.cc 2001/11/11 07:38:47 @@ -313,7 +313,7 @@ read_mounts () CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME); HKEY key = issystem ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; - if (RegCreateKeyEx (key, buf, 0, "Cygwin", 0, KEY_ALL_ACCESS, + if (RegCreateKeyEx (key, buf, 0, "Cygwin", 0, KEY_READ, 0, &key, &disposition) != ERROR_SUCCESS) break; for (int i = 0; ;i++, m++) ____ | AIST Kazuhiro Fujieda | HOKURIKU Center for Information Science o_/ 1990 Japan Advanced Institute of Science and Technology