X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinsftp.c;h=e6b55c1dd82e047e71da0a2d743ff98e6363c881;hb=5c00b581c8b83f6e7be9d53a77d9c61ef4d817a5;hp=de84997d9e69b8a6f213f719015b66d52a24623b;hpb=f14953d9e94c176cfc928bb719d6f613da96717e;p=PuTTY.git 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;