9
0
Fork 0

change files and dirs to rwxrwxrwx

This commit is contained in:
Sascha Hauer 2007-10-04 13:15:09 +02:00
parent 2804d6bdc8
commit faf5efa138
2 changed files with 3 additions and 2 deletions

View File

@ -399,7 +399,8 @@ int open(const char *pathname, int flags, ...)
}
if (!exist) {
errno = fsdrv->create(dev, path, S_IFREG);
errno = fsdrv->create(dev, path,
S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO);
if (errno)
goto out;
}

View File

@ -249,7 +249,7 @@ static int ramfs_unlink(struct device_d *dev, const char *pathname)
static int ramfs_mkdir(struct device_d *dev, const char *pathname)
{
return ramfs_create(dev, pathname, S_IFDIR);
return ramfs_create(dev, pathname, S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO);
}
static int ramfs_rmdir(struct device_d *dev, const char *pathname)