(sys_chown): New function.
This commit is contained in:
parent
0e20b3a37b
commit
2d5ab4bf85
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue