Merge pull request #407 from jakllsch/netbsd-group
don't use the non-existant gshadow database on NetBSD either
This commit is contained in:
		
				commit
				
					
						b9280f1ea7
					
				
			
		
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -24,9 +24,11 @@
 | 
				
			||||||
name=$__object_id
 | 
					name=$__object_id
 | 
				
			||||||
os="$($__explorer/os)"
 | 
					os="$($__explorer/os)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$os" = "freebsd" ]; then
 | 
					case "$os" in
 | 
				
			||||||
   echo "FreeBSD does not have getent gshadow"
 | 
					    "freebsd"|"netbsd")
 | 
				
			||||||
   exit 0
 | 
						echo "$os does not have getent gshadow"
 | 
				
			||||||
fi
 | 
						exit 0
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
getent gshadow "$name" || true
 | 
					getent gshadow "$name" || true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue