Correctly full buffer smbpasswd i/o streams.
authorJeremy Allison <jra@samba.org>
Thu, 2 Mar 2000 02:58:48 +0000 (02:58 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 2 Mar 2000 02:58:48 +0000 (02:58 +0000)
Jeremy.
(This used to be commit 7b222ed713d47241822323970214326b6a8e67ac)

source3/passdb/smbpass.c

index 4a1d89bd06749896a16b31ce4df3fcaca38d198d..701d796c562ff46663f12321b50d00f1169927f3 100644 (file)
@@ -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);