use it for anything security sensitive.
********************************************************************/
-static bool user_can_read_file(connection_struct *conn, char *name, SMB_STRUCT_STAT *pst)
+static bool user_can_read_file(connection_struct *conn, char *name)
{
/*
* If user is a member of the Admin group
return True;
}
- SMB_ASSERT(VALID_STAT(*pst));
-
return can_access_file_acl(conn, name, FILE_READ_DATA);
}
}
/* Honour _hide unreadable_ option */
- if (hide_unreadable && !user_can_read_file(conn, entry, pst)) {
+ if (hide_unreadable && !user_can_read_file(conn, entry)) {
DEBUG(10,("is_visible_file: file %s is unreadable.\n", entry ));
SAFE_FREE(entry);
return False;