mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Added "Jim McDonough" <jmcd@us.ibm.com> patches for directory support
for Win9x. Jeremy.
This commit is contained in:
parent
3d4a3bfacd
commit
70194b194e
@ -1611,9 +1611,14 @@ uint32 _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC
|
||||
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN), 0, 0, &access_mode, &action);
|
||||
|
||||
if (!fsp) {
|
||||
DEBUG(3,("_srv_net_file_query_secdesc: Unable to open file %s\n", filename));
|
||||
r_u->status = ERROR_ACCESS_DENIED;
|
||||
goto error_exit;
|
||||
/* Perhaps it is a directory */
|
||||
fsp = open_directory(conn, filename, &st,
|
||||
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN), 0, &action);
|
||||
if (!fsp) {
|
||||
DEBUG(3,("_srv_net_file_query_secdesc: Unable to open file %s\n", filename));
|
||||
r_u->status = ERROR_ACCESS_DENIED;
|
||||
goto error_exit;
|
||||
}
|
||||
}
|
||||
|
||||
sd_size = conn->vfs_ops.get_nt_acl(fsp, fsp->fsp_name, &psd);
|
||||
@ -1699,9 +1704,14 @@ uint32 _srv_net_file_set_secdesc(pipes_struct *p, SRV_Q_NET_FILE_SET_SECDESC *q_
|
||||
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN), 0, 0, &access_mode, &action);
|
||||
|
||||
if (!fsp) {
|
||||
DEBUG(3,("_srv_net_file_set_secdesc: Unable to open file %s\n", filename));
|
||||
r_u->status = ERROR_ACCESS_DENIED;
|
||||
goto error_exit;
|
||||
/* Perhaps it is a directory */
|
||||
fsp = open_directory(conn, filename, &st,
|
||||
(FILE_FAIL_IF_NOT_EXIST|FILE_EXISTS_OPEN), 0, &action);
|
||||
if (!fsp) {
|
||||
DEBUG(3,("_srv_net_file_set_secdesc: Unable to open file %s\n", filename));
|
||||
r_u->status = ERROR_ACCESS_DENIED;
|
||||
goto error_exit;
|
||||
}
|
||||
}
|
||||
|
||||
ret = conn->vfs_ops.set_nt_acl(fsp, fsp->fsp_name, q_u->sec_info, q_u->sec_desc);
|
||||
|
Loading…
Reference in New Issue
Block a user