change files and dirs to rwxrwxrwx
This commit is contained in:
parent
2804d6bdc8
commit
faf5efa138
3
fs/fs.c
3
fs/fs.c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue