23 lines
740 B
Diff
23 lines
740 B
Diff
---
|
|
subversion/libsvn_subr/cmdline.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/subversion/libsvn_subr/cmdline.c
|
|
+++ b/subversion/libsvn_subr/cmdline.c
|
|
@@ -82,6 +82,7 @@ svn_cmdline_init(const char *progname, F
|
|
#pragma convert(1208)
|
|
#endif
|
|
{
|
|
+ if (error_stream)
|
|
fprintf(error_stream, "%s: error: cannot open '/dev/null'\n",
|
|
progname);
|
|
return EXIT_FAILURE;
|
|
@@ -92,6 +93,7 @@ svn_cmdline_init(const char *progname, F
|
|
/* Ignore any errors encountered while attempting to change stream
|
|
buffering, as the streams should retain their default buffering
|
|
modes. */
|
|
+ if (error_stream)
|
|
setvbuf(error_stream, NULL, _IONBF, 0);
|
|
#ifndef WIN32
|
|
setvbuf(stdout, NULL, _IOLBF, 0);
|