diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-10-12 20:15:38 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-10-12 13:47:09 +0200 |
commit | 67171946de26bfa5ce92c50286d4b6fa8204a1c6 (patch) | |
tree | f24b5798ff1bcfe361d35fec4e1b3f6c55dbe4b8 | |
parent | bf071a0d38d6e358e14f887dd4e99a43b1bfd69c (diff) | |
download | libssh-67171946de26bfa5ce92c50286d4b6fa8204a1c6.tar.gz libssh-67171946de26bfa5ce92c50286d4b6fa8204a1c6.tar.xz libssh-67171946de26bfa5ce92c50286d4b6fa8204a1c6.zip |
torture: Restrict files to we write to our user.
-rw-r--r-- | tests/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/torture.c b/tests/torture.c index ff801a52..032ae950 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -628,7 +628,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)); |