summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-02 02:58:48 +0000
committerJeremy Allison <jra@samba.org>2000-03-02 02:58:48 +0000
commitea1c3cc23dc7769908e5bb3d56ba731f03ddbcd1 (patch)
tree35323f226f69c3e4867da3265ea3da11d64e3b52 /source3/passdb
parent45695955190edb353dd118d7e4f7bc200c827d92 (diff)
downloadsamba-ea1c3cc23dc7769908e5bb3d56ba731f03ddbcd1.tar.gz
samba-ea1c3cc23dc7769908e5bb3d56ba731f03ddbcd1.tar.bz2
samba-ea1c3cc23dc7769908e5bb3d56ba731f03ddbcd1.zip
Correctly full buffer smbpasswd i/o streams.
Jeremy. (This used to be commit 7b222ed713d47241822323970214326b6a8e67ac)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index 4a1d89bd06..701d796c56 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -146,7 +146,7 @@ static void *startsmbfilepwent_internal(const char *pfile, enum pwf_access_type
}
/* Set a buffer to do more efficient reads */
- setvbuf(fp, (char *)NULL, _IOLBF, 0);
+ setvbuf(fp, (char *)NULL, _IOFBF, 1024);
/* Make sure it is only rw by the owner */
chmod(pfile, 0600);