I have been running "/usr/sbin/makemap hash /etc/mail/access < /etc/mail/access' for years now with no problem. Suddenly I am getting a hang on it. I have the following permissions of the files:
20 -rw-r--r-- 1 root other 9667 Sep 26 19:19 access
0 -rw-r--r-- 1 root other 0 Sep 26 16:10 access.db
I am at a loss. Is there a way to debug makemap that I am unaware of? Perhaps a parser for the access file?
Mike
OK, here's what I did. I had an old access.db file available - I moved it into the empty access.db's place and ran makemap with the -v flag. Voila, it made the database as it should. I dunno why, but it worked.
Mike
"It never fails to amaze me how little I actually know and how much less I understand" - Me
makemap includes sysexits.h
IF you read sysexits.h you will see various values and what there meaning is - example:EX_USAGE (64) is returned when parameters are bad for example. Check the return value and see what the problem is. IF you get a value, then run makemap under strace and locate what system call it is choking on. Most of the time it has been EX_CANTCREATE for me. strace illuminates the problem file that cant be opened.