* extfs.c (__find_entry): When creating entried for regular

files, set initial permissions to S_IFREG | 0666.  This fixes
problems with viewing and editing newly added files.
This commit is contained in:
Pavel Roskin 2002-12-09 05:21:48 +00:00
parent b10cf9e422
commit 0fce236546
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2002-12-09 Pavel Roskin <proski@gnu.org>
* extfs.c (__find_entry): When creating entried for regular
files, set initial permissions to S_IFREG | 0666. This fixes
problems with viewing and editing newly added files.
* extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE.
2002-12-08 Pavel Roskin <proski@gnu.org>

View File

@ -810,7 +810,7 @@ __find_entry (struct entry *dir, char *name,
pent = generate_entry (dir->inode->archive, p, pdir, S_IFDIR | 0777);
}
if (pent == NULL && make_file) {
pent = generate_entry (dir->inode->archive, p, pdir, 0777);
pent = generate_entry (dir->inode->archive, p, pdir, S_IFREG | 0666);
}
}
}