diff src/w32.c @ 63744:19486c46b17e

(sys_chown): New function.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 24 Jun 2005 10:39:56 +0000
parents ac1cd1222417
children a8fa7c632ee4 bb71c6cf2009
line wrap: on
line diff
--- a/src/w32.c	Fri Jun 24 10:39:20 2005 +0000
+++ b/src/w32.c	Fri Jun 24 10:39:56 2005 +0000
@@ -1898,6 +1898,14 @@
 }
 
 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)
 {
   return _creat (map_w32_filename (path, NULL), mode);