* fhandler_disk_file.cc (fhandler_disk_file::facl): Pretend successful

SETACL if no acls are available.
	* fhandler.cc (fhandler_base::facl): Implement to return sensible
	values on GETACL and GETACLCNT.  Pretend successful SETACL.
	* fhandler_virtual.cc (fhandler_virtual::facl): Ditto.
This commit is contained in:
Corinna Vinschen
2005-01-14 22:03:40 +00:00
parent 36ca239fd4
commit aafdf30f7a
4 changed files with 58 additions and 6 deletions

View File

@ -498,7 +498,11 @@ fhandler_disk_file::facl (int cmd, int nentries, __aclent32_t *aclbufp)
struct __stat64 st;
case SETACL:
set_errno (ENOSYS);
/* Open for writing required to be able to set ctime
(even though setting the ACL is just pretended). */
if (!get_io_handle ())
oret = open_fs (O_WRONLY | O_BINARY, 0);
res = 0;
break;
case GETACL:
if (!aclbufp)