torture: Restrict files to we write to our user.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
c3f963e71e
Коммит
62b0f58d24
@ -621,7 +621,7 @@ void torture_write_file(const char *filename, const char *data){
|
||||
assert_true(filename[0] != '\0');
|
||||
assert_non_null(data);
|
||||
|
||||
fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0755);
|
||||
fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0600);
|
||||
assert_true(fd >= 0);
|
||||
|
||||
rc = write(fd, data, strlen(data));
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user