www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/04/22/11:07:54

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Mon, 22 Apr 2002 11:00:49 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-apps AT cygwin DOT com
Subject: Re: [teilo AT cdt DOT luth DOT se: Re: [bug?] binary mount point option in setup]
Message-ID: <20020422150049.GJ2946@redhat.com>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com
References: <20020410201729 DOT GB26692 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20020410201729.GB26692@redhat.com>
User-Agent: Mutt/1.3.23.1i

Any comments on this, Robert?

cgf

On Wed, Apr 10, 2002 at 04:17:29PM -0400, Christopher Faylor wrote:
>It isn't a proper patch, but maybe this should be incorporated into setup,
>if it isn't already.
>
>It seems like a valid problem.
>
>cgf
>
>----- Forwarded message from James Nord <teilo AT cdt DOT luth DOT se> -----
>
>From: James Nord <teilo AT cdt DOT luth DOT se>
>To: cygwin AT cygwin DOT com
>CC: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
>Subject: Re: [bug?] binary mount point option in setup
>Date: Mon, 08 Apr 2002 23:28:34 +0200
>Mail-Followup-To: cygwin AT cygwin DOT com
>
>Larry Hall (RFK Partners, Inc) wrote:
>
>>At 04:19 PM 4/8/2002, James Nord wrote:
>>
>>>Hi,
>>>
>>>I apear to have found a bug in cygwins setup program 2.125.2.10
>>>
>>>Description:
>>>
>>>When installing as administrator on XP if you select install for everyone 
>>>and set the default file format to be unix then the /cygdrive mount point 
>>>will be binary mode when running as the administrator user.
>>>
>>>mounts are stored in HLKM, however /cygdrive mounts and defaults are stored 
>>>in HKCU
>>>(see below.)
>>>
>>>So when a user (not administrator) comes to use the cygwin tools /cygdrive 
>>>is mounted text not binary.
>>>
>>>Why does cygwin store the /cygdrive default in HKCU and not HKLM when 
>>>installing as multiuser?
>>>why not store the info in HKLM along with the other mount options?
>>>
>>
>>
>>Patches cheerfully accepted!
>>
>Hmm well...
>
>>From what I gather the setup calls function set_cygdrive_flags in mount.cc
>in my case issytem = true
>
>however 
>Line 202
>     status = get_cygdrive_flags (key, &cygdrive_flags);
>won't that *always* fail unless the key already exists?  We are 
>installing clean so it will never exist?
>
>Anyway, diff attached - don't know if it is correct or if it works, 
>usual disclaimers apply ;-)
>
>>>Also I couldn't find a way to change the options without running setup or 
>>>regedit again.
>>>full drives can be changed with the mount command but /cygdrive only?
>>>
>>mount -b -s -c /cygdrive
>>
>Ahh...
>
>but hand on... what do the flags actually do?
>the flag in HKCU is 22 (binary nounmount)? but when I ran that command 
>it set the flags in HKLM to 2a
>
>difference being?
>
>/James
>
>203c203
>< 	  if (status != ERROR_SUCCESS)
>---
>> 	  if (status == ERROR_SUCCESS)
>205,210c205,207
>< 				cygdrive_flags = default_cygdrive (key);
>< 			}
>< 		set_cygdrive_flags (key, istext, cygdrive_flags);
>< 		found_system = 1;
>< 	}
>< 		
>---
>> 	      set_cygdrive_flags (key, istext, cygdrive_flags);
>> 	      found_system = 1;
>> 	    }
>212c209
>< 		}
>---
>> 	}
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>----- End forwarded message -----

- Raw text -


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