changeset 63744:19486c46b17e

(sys_chown): New function.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 24 Jun 2005 10:39:56 +0000
parents 28ba3b83e358
children 9e20e451f70f
files src/w32.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
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);