summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-13 04:28:01 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-13 04:28:01 +0000
commite66e354421b8be64a1b6774bde4d187532ee7690 (patch)
treeb961671fb3380d91723f009fd63896d09994e06f
parent66af95716de470600b0db58bdf8a1f0c15dba036 (diff)
downloadsamba-e66e354421b8be64a1b6774bde4d187532ee7690.tar.gz
samba-e66e354421b8be64a1b6774bde4d187532ee7690.tar.xz
samba-e66e354421b8be64a1b6774bde4d187532ee7690.zip
fixed a stdin bug in XFILE that prevented 'print -' from working
-rw-r--r--source/lib/xfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/xfile.c b/source/lib/xfile.c
index 59f9fd48ad0..903dfb1ae0a 100644
--- a/source/lib/xfile.c
+++ b/source/lib/xfile.c
@@ -31,16 +31,16 @@
#include "includes.h"
-static XFILE _x_stdin = { 0, NULL, NULL, 0, 0, O_RDONLY, X_IOFBF, 0 };
-static XFILE _x_stdout = { 1, NULL, NULL, 0, 0, O_WRONLY, X_IOLBF, 0 };
+#define XBUFSIZE BUFSIZ
+
+static XFILE _x_stdin = { 0, NULL, NULL, XBUFSIZE, 0, O_RDONLY, X_IOFBF, 0 };
+static XFILE _x_stdout = { 1, NULL, NULL, XBUFSIZE, 0, O_WRONLY, X_IOLBF, 0 };
static XFILE _x_stderr = { 2, NULL, NULL, 0, 0, O_WRONLY, X_IONBF, 0 };
XFILE *x_stdin = &_x_stdin;
XFILE *x_stdout = &_x_stdout;
XFILE *x_stderr = &_x_stderr;
-#define XBUFSIZE BUFSIZ
-
#define X_FLAG_EOF 1
#define X_FLAG_ERROR 2