diff options
author | ache <ache@FreeBSD.org> | 1997-11-06 00:50:44 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-11-06 00:50:44 +0000 |
commit | 48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3 (patch) | |
tree | 2dc8f9e9c06395642650ee480841302dc1d61c4f /contrib/libreadline/histfile.c | |
parent | 9591c8cdcea290e4603450129e8cfcd3a4bb2d36 (diff) | |
parent | 53ee3efdd804d38a5c57372c0722804607ceb256 (diff) | |
download | FreeBSD-src-48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3.zip FreeBSD-src-48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r30971,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/libreadline/histfile.c')
-rw-r--r-- | contrib/libreadline/histfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libreadline/histfile.c b/contrib/libreadline/histfile.c index c3de134..9f96f1c 100644 --- a/contrib/libreadline/histfile.c +++ b/contrib/libreadline/histfile.c @@ -246,7 +246,7 @@ history_truncate_file (fname, lines) /* Write only if there are more lines in the file than we want to truncate to. */ - if (i && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0666)) != -1)) + if (i && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0600)) != -1)) { write (file, buffer + i, finfo.st_size - i); close (file); @@ -275,7 +275,7 @@ history_do_write (filename, nelements, overwrite) mode = overwrite ? O_WRONLY|O_CREAT|O_TRUNC|O_BINARY : O_WRONLY|O_APPEND|O_BINARY; output = history_filename (filename); - if ((file = open (output, mode, 0666)) == -1) + if ((file = open (output, mode, 0600)) == -1) { FREE (output); return (errno); |