mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	Fix grantpt basename namespace bug
Commit cf06a4e3 removed test-xfail-POSIX2008/unistd.h/linknamespace, but
left one basename namespace issue in grantpt. However this issue is not
visible with the default configuration buy only when configure is passed
the --enable-pt_chown option.
			
			
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
				
			|||||||
 | 
					2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
 | 
				
			||||||
 | 
						basename.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
 | 
					2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* benchtests/Makefile (bench-math): Move ffs and ffsll...
 | 
						* benchtests/Makefile (bench-math): Move ffs and ffsll...
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -195,7 +195,7 @@ grantpt (int fd)
 | 
				
			|||||||
      CLOSE_ALL_FDS ();
 | 
					      CLOSE_ALL_FDS ();
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      execle (_PATH_PT_CHOWN, basename (_PATH_PT_CHOWN), NULL, NULL);
 | 
					      execle (_PATH_PT_CHOWN, __basename (_PATH_PT_CHOWN), NULL, NULL);
 | 
				
			||||||
      _exit (FAIL_EXEC);
 | 
					      _exit (FAIL_EXEC);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user