delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/11/11/05:22:50

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: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <023101c16a9b$08ae99a0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-apps AT cygwin DOT com>, "Kazuhiro Fujieda" <fujieda AT jaist DOT ac DOT jp>
References: <s1sg07la9q5 DOT fsf AT jaist DOT ac DOT jp>
Subject: Re: [PATCH] Allow updating packages without administrative priviledge
Date: Sun, 11 Nov 2001 21:24:22 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 11 Nov 2001 10:30:17.0381 (UTC) FILETIME=[DB3DA550:01C16A9B]

Thanks!. I'll apply this shortly.

Rob

----- Original Message -----
From: "Kazuhiro Fujieda" <fujieda AT jaist DOT ac DOT jp>
To: <cygwin-apps AT cygwin DOT com>
Sent: Sunday, November 11, 2001 9:21 PM
Subject: [PATCH] Allow updating packages without administrative
priviledge


> 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  <fujieda AT jaist DOT ac DOT jp>
>
> * 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 <fujieda AT jaist DOT ac DOT jp>
>   | HOKURIKU  Center for Information Science
> o_/ 1990      Japan Advanced Institute of Science and Technology
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019