mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Fix for not opening Excel 2000 files that are read-only. Needs tidying
up but works for now.
Jeremy.
(This used to be commit 9ad9e0dfaf
)
This commit is contained in:
parent
ad12b87aeb
commit
c5b34aa7e6
@ -61,9 +61,6 @@ int unix_error_packet(char *outbuf,int def_class,uint32 def_code,
|
|||||||
eclass = unix_ERR_class;
|
eclass = unix_ERR_class;
|
||||||
ecode = unix_ERR_code;
|
ecode = unix_ERR_code;
|
||||||
ntstatus = unix_ERR_ntstatus;
|
ntstatus = unix_ERR_ntstatus;
|
||||||
unix_ERR_class = SMB_SUCCESS;
|
|
||||||
unix_ERR_code = 0;
|
|
||||||
unix_ERR_ntstatus = NT_STATUS_OK;
|
|
||||||
} else {
|
} else {
|
||||||
while (unix_dos_nt_errmap[i].dos_class != 0) {
|
while (unix_dos_nt_errmap[i].dos_class != 0) {
|
||||||
if (unix_dos_nt_errmap[i].unix_error == errno) {
|
if (unix_dos_nt_errmap[i].unix_error == errno) {
|
||||||
@ -93,6 +90,10 @@ int error_packet(char *outbuf,NTSTATUS ntstatus,
|
|||||||
if (errno != 0)
|
if (errno != 0)
|
||||||
DEBUG(3,("error string = %s\n",strerror(errno)));
|
DEBUG(3,("error string = %s\n",strerror(errno)));
|
||||||
|
|
||||||
|
unix_ERR_class = SMB_SUCCESS;
|
||||||
|
unix_ERR_code = 0;
|
||||||
|
unix_ERR_ntstatus = NT_STATUS_OK;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We can explicitly force 32 bit error codes even when the
|
* We can explicitly force 32 bit error codes even when the
|
||||||
* parameter "nt status" is set to no by pre-setting the
|
* parameter "nt status" is set to no by pre-setting the
|
||||||
|
Loading…
Reference in New Issue
Block a user