diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-13 04:28:01 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-13 04:28:01 +0000 |
commit | a0489b36c1c4e0de05acec022e59f17bf5e5760e (patch) | |
tree | 038c37d16833e668ca686a8acdde17c41101239e /source3/lib | |
parent | ebfff1a475bbebe94cc7e61f52c5de1dde43dd3c (diff) | |
download | samba-a0489b36c1c4e0de05acec022e59f17bf5e5760e.tar.gz samba-a0489b36c1c4e0de05acec022e59f17bf5e5760e.tar.bz2 samba-a0489b36c1c4e0de05acec022e59f17bf5e5760e.zip |
fixed a stdin bug in XFILE that prevented 'print -' from working
(This used to be commit e66e354421b8be64a1b6774bde4d187532ee7690)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/xfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/xfile.c b/source3/lib/xfile.c index 59f9fd48ad..903dfb1ae0 100644 --- a/source3/lib/xfile.c +++ b/source3/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 |