From 2d5ab4bf851c71c0589b018a8bfc30cdc0a903e7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 24 Jun 2005 10:39:56 +0000 Subject: [PATCH] (sys_chown): New function. --- src/w32.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/w32.c b/src/w32.c index 1bb4a91ff03..1585b3eaf1e 100644 --- a/src/w32.c +++ b/src/w32.c @@ -1897,6 +1897,14 @@ sys_chmod (const char * path, int mode) return _chmod (map_w32_filename (path, NULL), mode); } +int +sys_chown (const char *path, uid_t owner, gid_t group) +{ + if (sys_chmod (path, _S_IREAD) == -1) /* check if file exists */ + return -1; + return 0; +} + int sys_creat (const char * path, int mode) { -- 2.39.2