]> git.eshelyaron.com Git - emacs.git/commitdiff
(sys_chown): New function.
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Jun 2005 10:39:56 +0000 (10:39 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Jun 2005 10:39:56 +0000 (10:39 +0000)
src/w32.c

index 1bb4a91ff033abb52d533fe6a46733795a367462..1585b3eaf1e47d76e717e57319f7070ac9dd6a4d 100644 (file)
--- 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)
 {