1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

When "ctdb pfetch" creates a new file, make sure we set some initial sane mode bits

(This used to be ctdb commit 87160c91bfd87e8b9c510dacbf00e5aa481d2305)
This commit is contained in:
Ronnie Sahlberg 2010-08-25 09:54:37 +10:00
parent ac335e3e5d
commit f75b984b71

View File

@ -2913,7 +2913,7 @@ static int control_pfetch(struct ctdb_context *ctdb, int argc, const char **argv
}
if (argc == 3) {
fd = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC);
fd = open(argv[2], O_WRONLY|O_CREAT|O_TRUNC, 0600);
if (fd == -1) {
DEBUG(DEBUG_ERR,("Failed to open output file %s\n", argv[2]));
talloc_free(tmp_ctx);