* syscalls.cc (endusershell): Reset shell_fp to NULL to allow
subsequent getusershell calls.
This commit is contained in:
		
							parent
							
								
									7871cd8c5d
								
							
						
					
					
						commit
						986c841b21
					
				| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
2005-08-24  Corinna Vinschen  <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* syscalls.cc (endusershell): Reset shell_fp to NULL to allow
 | 
			
		||||
	subsequent getusershell calls.
 | 
			
		||||
 | 
			
		||||
2005-08-24  Christopher Faylor  <cgf@timesys.com>
 | 
			
		||||
 | 
			
		||||
	* path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3052,7 +3052,10 @@ extern "C" void
 | 
			
		|||
endusershell ()
 | 
			
		||||
{
 | 
			
		||||
  if (shell_fp)
 | 
			
		||||
    fclose (shell_fp);
 | 
			
		||||
    {
 | 
			
		||||
      fclose (shell_fp);
 | 
			
		||||
      shell_fp = NULL;
 | 
			
		||||
    }
 | 
			
		||||
  shell_index = 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue