* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
HOMEPATH/HOMEDRIVE for consistency with HOME.
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
2002-07-01  Christopher Faylor  <cgf@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort
 | 
			
		||||
	for HOMEPATH/HOMEDRIVE for consistency with HOME.
 | 
			
		||||
 | 
			
		||||
2002-07-01  Corinna Vinschen  <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* shared.cc (sec_none): Move to sec_helper.cc.
 | 
			
		||||
 
 | 
			
		||||
@@ -265,10 +265,8 @@ cygheap_user::ontherange (homebodies what, struct passwd *pw)
 | 
			
		||||
				    MAX_PATH);
 | 
			
		||||
		      if (homepath_env_buf[0])
 | 
			
		||||
			strcat (homepath_env_buf, "\\");
 | 
			
		||||
		      else if (!GetSystemDirectory (homepath_env_buf, MAX_PATH))
 | 
			
		||||
			strcpy (homepath_env_buf, "c:\\");
 | 
			
		||||
		      else if ((p = strchr (homepath_env_buf, '\\')))
 | 
			
		||||
			p[1] = '\0';
 | 
			
		||||
		      else
 | 
			
		||||
			cygwin_conv_to_full_posix_path (homepath_env_buf, "/");
 | 
			
		||||
		    }
 | 
			
		||||
		}
 | 
			
		||||
	    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user