mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
don't create read-only files
svn path=/trunk/; revision=10206
This commit is contained in:
@@ -60,10 +60,10 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
path = convert_path(argv[1]);
|
||||
id = open(path, S_IWRITE);
|
||||
id = open(path, S_IWRITE, S_IRUSR | S_IWUSR);
|
||||
if (id < 0)
|
||||
{
|
||||
id = open(path, S_IWRITE | O_CREAT);
|
||||
id = open(path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
|
||||
if (id < 0)
|
||||
{
|
||||
fprintf(stderr, "Cannot create file.\n");
|
||||
|
||||
Reference in New Issue
Block a user