X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f43713466178fbba6a09ee4590d6d441cbb725d1..ee07dce4bc01900faf5c9b14e14803705e239b5d:/windows/winsftp.c diff --git a/windows/winsftp.c b/windows/winsftp.c index de84997d..e6b55c1d 100644 --- a/windows/winsftp.c +++ b/windows/winsftp.c @@ -88,7 +88,8 @@ struct RFile { }; RFile *open_existing_file(char *name, uint64 *size, - unsigned long *mtime, unsigned long *atime) + unsigned long *mtime, unsigned long *atime, + long *perms) { HANDLE h; RFile *ret; @@ -113,6 +114,9 @@ RFile *open_existing_file(char *name, uint64 *size, TIME_WIN_TO_POSIX(wrtime, *mtime); } + if (perms) + *perms = -1; + return ret; } @@ -137,7 +141,7 @@ struct WFile { HANDLE h; }; -WFile *open_new_file(char *name) +WFile *open_new_file(char *name, long perms) { HANDLE h; WFile *ret;