mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions.
This commit is contained in:
		
							parent
							
								
									930c18ee44
								
							
						
					
					
						commit
						a915138852
					
				
					 8 changed files with 62 additions and 13 deletions
				
			
		|  | @ -166,13 +166,13 @@ statgidprint(gid_t gid, char *outbuf, int flags) | |||
| 	    strcat(outbuf, " ("); | ||||
|     } | ||||
|     if (flags & STF_STRING) { | ||||
| #ifdef HAVE_GETGRGID | ||||
| #ifdef USE_GETGRGID | ||||
| 	struct group *gr; | ||||
| 	gr = getgrgid(gid); | ||||
| 	if (gr) | ||||
| 	    strcat(outbuf, gr->gr_name); | ||||
| 	else | ||||
| #endif /* !HAVE_GETGRGID */ | ||||
| #endif /* !USE_GETGRGID */ | ||||
| 	{ | ||||
| 	    char *optr; | ||||
| 	    for (optr = outbuf; *optr; optr++) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue