October 22, 2004: patch/fix to move mlock/mlockall/plock code after the
fork().
June 29, 2005: core dump going off end of exported_ap[] array.
+September 29, 2005: patch/fix for pawd not to go into an infinite loop.
* David Rage <rage@ucl.ac.uk>
January 17, 2005: prevent Amd from logging 'Read-only filesystem' errors
2005-09-29 Erez Zadok <ezk@cs.sunysb.edu>
+ * amq/pawd.c (find_mt): if the auto mount type is used, pawd could
+ go into an infinite loop since the mt_directory and mt_mountpoint
+ fields are the same for auto mounts. Solution: ignore type auto
+ mounts, similar to toplvl. Bug fix from Jonathan Chen
+ <jon+amd@spock.org>.
+
* README.attrcache: document test-attrcache script.
* scripts/Makefile.am (noinst_SCRIPTS): build test-attrcache
* properly turn off the attrcache in freebsd and openbsd
* can turn off attrcache on netbsd, but need kernel patch, see
README.attrcache
+ * pawd goes into an infinite loop on type:=auto
+
Amd now understands a new log_option called "defaults" which is synonymous
with "fatal,error,user,warning,info" (and is also what logging happens by
find_mt(amq_mount_tree *mt, char *dir)
{
while (mt) {
- if (!STREQ(mt->mt_type, "toplvl")) {
+ if (!STREQ(mt->mt_type, "toplvl") && !STREQ(mt->mt_type, "auto")) {
int len = strlen(mt->mt_mountpoint);
if (len != 0 && NSTREQ(mt->mt_mountpoint, dir, len) &&
((dir[len] == '\0') || (dir[len] == '/'))) {