1
1

torture: Restrict files to we write to our user.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2014-10-12 20:15:38 +02:00
родитель 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));