Alejandro Colomar 5da8388fc6 
	
	
	ttytype(): Fix race ... 
			The intention of the code is just to not report an error message when
'typefile' doesn't exist.  If we call access(2) and then fopen(2),
there's a race.  It's not a huge problem, and the worst thing that can
happen is reporting an error when the file has been removed after
access(2).  It's not a problem, but we can fix the race and at the same
time clarify the intention of not warning about ENOENT and also remove
one syscall.  Seems like a win-win.
Suggested-by: Christian Göttsche <cgzones@googlemail.com >
Signed-off-by: Alejandro Colomar <alx@kernel.org > 
		
	 
		2023-02-09 10:03:03 -06:00 
	 
	
	
	
		 
	
	
		
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 12:04:28 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-30 18:24:15 +01:00 
		 
	
		
			
			
			
			
			
			2022-08-06 11:27:56 -05:00 
		 
	
		
			
			
			
			
			
			2022-09-02 20:27:14 -05:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2022-08-17 12:34:01 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-30 18:24:15 +01:00 
		 
	
		
			
			
			
			
			
			2022-12-22 18:03:39 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-22 10:31:43 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-22 11:43:29 +01:00 
		 
	
		
			
			
			
			
			
			2022-12-22 11:43:29 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-29 02:41:09 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-08-06 11:27:56 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-27 21:48:37 -06:00 
		 
	
		
			
			
			
			
			
			2022-08-06 11:27:56 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-30 18:24:15 +01:00 
		 
	
		
			
			
			
			
			
			2022-08-06 11:27:56 -05:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-22 11:43:29 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-15 16:22:05 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2022-08-17 12:34:01 -05:00 
		 
	
		
			
			
			
			
			
			2022-12-15 16:22:05 -06:00 
		 
	
		
			
			
			
			
			
			2022-08-06 15:04:06 -05:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2022-01-02 18:38:42 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-22 10:39:45 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-02 13:08:30 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-15 16:22:05 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-22 10:31:43 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00 
		 
	
		
			
			
			
			
			
			2021-12-23 19:36:50 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-15 16:22:05 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-26 22:44:39 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-26 22:44:39 -06:00 
		 
	
		
			
			
			
			
			
			2022-12-15 16:22:05 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-26 22:44:39 -06:00 
		 
	
		
			
			
			
			
			
			2023-01-26 22:44:39 -06:00 
		 
	
		
			
			
			
			
			
			2022-09-29 16:03:53 +02:00 
		 
	
		
			
			
			
			
			
			2023-02-09 10:03:03 -06:00