In UFS, when reading EA that contains ACL fails for some reason, include

inode number and filesystem name, so the administrator can fix the problem.

Approved by:	rwatson (mentor)
This commit is contained in:
trasz 2008-11-04 12:30:31 +00:00
parent 85b1030aa8
commit 5ff0dc16bf

View File

@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$");
#include <ufs/ufs/dir.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/ufs_extern.h>
#include <ufs/ffs/fs.h>
#ifdef UFS_ACL
@ -217,7 +218,8 @@ ufs_getacl(ap)
* are unsafe.
*/
printf("ufs_getacl(): Loaded invalid ACL ("
"%d bytes)\n", len);
"%d bytes), inumber %d on %s\n", len,
ip->i_number, ip->i_fs->fs_fsmnt);
return (EPERM);
}
ufs_sync_acl_from_inode(ip, ap->a_aclp);
@ -262,7 +264,8 @@ ufs_getacl(ap)
* protections are unsafe.
*/
printf("ufs_getacl(): Loaded invalid ACL ("
"%d bytes)\n", len);
"%d bytes), inumber %d on %s\n", len,
ip->i_number, ip->i_fs->fs_fsmnt);
return (EPERM);
}
break;