Author: tridge Date: 2004-12-12 09:02:18 +0000 (Sun, 12 Dec 2004) New Revision: 4162
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4162 Log: this should fix the delete/findnext problem from OS/2 clients. Thanks again to kukks for the excellent and detailed bug report Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c =================================================================== --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c 2004-12-12 08:35:11 UTC (rev 4161) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c 2004-12-12 09:02:18 UTC (rev 4162) @@ -282,5 +282,7 @@ pvfs_list_hibernate(dir); - return NT_STATUS_OBJECT_NAME_NOT_FOUND; + /* it is not an error to give a bad name (it may have been deleted). Instead + just continue from end of directory */ + return NT_STATUS_OK; } Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c =================================================================== --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c 2004-12-12 08:35:11 UTC (rev 4161) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c 2004-12-12 09:02:18 UTC (rev 4162) @@ -562,6 +562,10 @@ talloc_free(search); } + if (reply_count == 0) { + return NT_STATUS_NO_SUCH_FILE; + } + return NT_STATUS_OK; }