From: Eli Zaretskii Date: Fri, 24 Jun 2005 10:39:56 +0000 (+0000) Subject: (sys_chown): New function. X-Git-Tag: emacs-pretest-22.0.90~8663 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d5ab4bf851c71c0589b018a8bfc30cdc0a903e7;p=emacs.git (sys_chown): New function. --- 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) {