[1795] in Athena Bugs

home help back first fref pref prev next nref lref last post

Bug in ACL library

daemon@ATHENA.MIT.EDU (Robert S. French)
Sun Feb 19 16:34:19 1989

Date: Sun, 19 Feb 89 16:32:17 EST
From: "Robert S. French" <rfrench@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

Line 400 of acl_files.c should read:

    if(stat(acl_cache[i].filename, &s) < 0) return(-1);

instead of:

    if(fstat(acl_cache[i].fd, &s) < 0) return(-1);

This bug causes commands like acl_add and acl_delete to fail if
they're called more than once on the same file.  Also, the ACL library
is amazingly slow.  It takes up to 4 seconds to check access in a file
containing only _one_ line.  This is true even if the file has already
been cached by the ACL library.

			Rob


home help back first fref pref prev next nref lref last post