openbsd and freebsd both use the 'passwd' database
This commit is contained in:
		
					parent
					
						
							
								5cbdf981c0
							
						
					
				
			
			
				commit
				
					
						6a455be63a
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -26,9 +26,10 @@ os="$($__explorer/os)"
 | 
				
			||||||
# Default to using shadow passwords
 | 
					# Default to using shadow passwords
 | 
				
			||||||
database="shadow"
 | 
					database="shadow"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$os" = "freebsd" ]; then
 | 
					case "$os" in
 | 
				
			||||||
   database="passwd"
 | 
					  "freebsd"|"openbsd")  database="passwd";;
 | 
				
			||||||
fi
 | 
					esac
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
getent "$database" "$name" || true
 | 
					getent "$database" "$name" || true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue