summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-13 13:49:50 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-13 13:49:50 +0000
commita25205bfc5baa428e6dbcda64f67e0546cf0a69e (patch)
tree40649fd1e0aae5c56fc0e88d4496f84c9a675fe2 /source3
parent2225fe13766ae07a44e27cc4a1fb665cf5afc804 (diff)
downloadsamba-a25205bfc5baa428e6dbcda64f67e0546cf0a69e.tar.gz
samba-a25205bfc5baa428e6dbcda64f67e0546cf0a69e.tar.bz2
samba-a25205bfc5baa428e6dbcda64f67e0546cf0a69e.zip
reverted a change made by Luke at his request.
Luke, when you don't know what has been changed in the CVS tree I highly recommend you point your browser at: http://samba.anu.edu.au/cgi-bin/cvsweb/samba/source If you click on a filename you can then see all the commits and changes that have been made to it over time. You can also download any version of the file or find the differences between any two versions. All of this is not dependent on the state of your local CVS sandbox, so it can be used to find out the "true" state of the tree at any time. If you suspect some sort of CVS problem (like a change getting reverted) then please use the above URL to work out what has happened. You should be able to see exactly who made what changes and when. (This used to be commit 3fc48246ee0d89ad2f10f050d2d68af53446129f)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 31ac9e351b..a4c25417ca 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -396,8 +396,8 @@ static void usage(char *name)
/* Set read buffer to 16k for effiecient reads */
setvbuf(fp, readbuf, _IOFBF, sizeof(readbuf));
- /* need locking permission on smbpasswd file */
- chmod(pfile, 0666);
+ /* make sure it is only rw by the owner */
+ chmod(pfile, 0600);
/* Lock the smbpasswd file for write. */
if ((lockfd = pw_file_lock(pfile, F_WRLCK, 5)) < 0) {