svn commit: samba r5815 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Tue Mar 15 23:46:13 GMT 2005
Author: jra
Date: 2005-03-15 23:46:12 +0000 (Tue, 15 Mar 2005)
New Revision: 5815
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5815
Log:
Catch the "." resume name case also.
Jeremy.
Modified:
trunk/source/smbd/trans2.c
Changeset:
Modified: trunk/source/smbd/trans2.c
===================================================================
--- trunk/source/smbd/trans2.c 2005-03-15 23:41:03 UTC (rev 5814)
+++ trunk/source/smbd/trans2.c 2005-03-15 23:46:12 UTC (rev 5815)
@@ -1569,12 +1569,14 @@
srvstr_get_path(inbuf, resume_name, params+12, sizeof(resume_name), -1, STR_TERMINATE, &ntstatus, True);
if (!NT_STATUS_IS_OK(ntstatus)) {
- /* Win9x can send a resume name of "..". This will cause the parser to
+ /* Win9x or OS/2 can send a resume name of ".." or ".". This will cause the parser to
complain (it thinks we're asking for the directory above the shared
- path). Catch this as the resume name is only compared, never used in
+ path or an invalid name). Catch this as the resume name is only compared, never used in
a file access. JRA. */
- if (NT_STATUS_V(ntstatus) == NT_STATUS_V(NT_STATUS_OBJECT_PATH_SYNTAX_BAD)) {
+ if (NT_STATUS_EQUAL(ntstatus,NT_STATUS_OBJECT_PATH_SYNTAX_BAD)) {
pstrcpy(resume_name, "..");
+ } else if (NT_STATUS_EQUAL(ntstatus,NT_STATUS_OBJECT_NAME_INVALID)) {
+ pstrcpy(resume_name, ".");
} else {
return ERROR_NT(ntstatus);
}
More information about the samba-cvs
mailing list