summaryrefslogtreecommitdiffstats
path: root/source/utils/smbpasswd.c
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
commit3fc48246ee0d89ad2f10f050d2d68af53446129f (patch)
tree61e1139c0fa2cdff91d0e2c5bb6af33f8b6d95ba /source/utils/smbpasswd.c
parenta3f96555b47265b8cd4d1f735af58375e2591d56 (diff)
downloadsamba-3fc48246ee0d89ad2f10f050d2d68af53446129f.tar.gz
samba-3fc48246ee0d89ad2f10f050d2d68af53446129f.tar.xz
samba-3fc48246ee0d89ad2f10f050d2d68af53446129f.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.
Diffstat (limited to 'source/utils/smbpasswd.c')
-rw-r--r--source/utils/smbpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index 31ac9e351be..a4c25417ca2 100644
--- a/source/utils/smbpasswd.c
+++ b/source/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) {