#
# mdatabase.awk	- by Andreas Klemm <andreas@knobel.knirsch.de>
#				Fri Apr 15 11:36:56 GMT+0100 1994
#
#		modified by Thomas Bueschgens <sledge@hammer.oche.de>
#				(and renamed to mkdatabase.awk)
#				Sun Apr 17 20:54:35 MET DST 1994
#

#
# echo login directories of users ( UID >= 99 ) on stdout
# These are the directories that will be searched during installation
# and (suggested) hourly cron-updates
#
# TODO: UserID should be variable, rigth now this value (99) is
# 	hardwired into this script, but that should be choosable
# 	during the setup/installation of apsfilter.
#
# But since most user-accounts start with UserIDs >=100, this should
# be reliable enough for the beginning.

# /etc/passwd:
#
# andreas:XXX:1000:0:Andreas Klemm:/local/accounts/andreas:/bin/sh
#    $1   $2  $3  $4      $5                 $6               $7
#

{	#set field separator from blank to ":" to scan passwd
	FS=":"

	#if UID > n then print his home directory...
	if ( $3 >=99)
		print $6
}
