mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-31 12:08:41 -05:00 
			
		
		
		
	tst: passthrough-fuse: testing
This commit is contained in:
		| @@ -198,8 +198,7 @@ static int ptfs_releasedir(const char *path, struct fuse_file_info *fi) | ||||
| { | ||||
|     DIR *dirp = fi_dirp(fi); | ||||
|  | ||||
|     closedir(dirp); | ||||
|     return 0; | ||||
|     return -1 != closedir(dirp) ? 0 : -errno; | ||||
| } | ||||
|  | ||||
| static int ptfs_create(const char *path, fuse_mode_t mode, struct fuse_file_info *fi) | ||||
|   | ||||
| @@ -32,7 +32,7 @@ | ||||
| struct _DIR | ||||
| { | ||||
|     HANDLE h, fh; | ||||
|     struct dirent dirent; | ||||
|     struct dirent de; | ||||
|     char path[]; | ||||
| }; | ||||
|  | ||||
| @@ -384,12 +384,16 @@ struct dirent *readdir(DIR *dirp) | ||||
|     else | ||||
|     { | ||||
|         if (!FindNextFileA(dirp->fh, &FindData)) | ||||
|         { | ||||
|             if (ERROR_NO_MORE_FILES == GetLastError()) | ||||
|                 return 0; | ||||
|             return error0(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     strcpy(dirp->dirent.d_name, FindData.cFileName); | ||||
|     strcpy(dirp->de.d_name, FindData.cFileName); | ||||
|  | ||||
|     return &dirp->dirent; | ||||
|     return &dirp->de; | ||||
| } | ||||
|  | ||||
| int closedir(DIR *dirp) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user