[PATCH] setup: better log message on failed fopen

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Sep 28 10:25:00 GMT 2005


The attached patch makes the error message from the io_stream_cygfile
constructor a bit more sensible.  This could've helped diagnose the
problem reported in <http://cygwin.com/ml/cygwin/2005-09/msg00901.html>.
	Igor
==============================================================================
2005-09-27  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
	Better log message on error.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
-------------- next part --------------
Index: io_stream_cygfile.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/io_stream_cygfile.cc,v
retrieving revision 2.21
diff -u -p -r2.21 io_stream_cygfile.cc
--- io_stream_cygfile.cc	5 May 2005 22:48:35 -0000	2.21
+++ io_stream_cygfile.cc	28 Sep 2005 01:24:58 -0000
@@ -144,7 +144,7 @@ io_stream_cygfile::io_stream_cygfile (St
   if (!fp)
   {
     lasterr = errno;
-    log(LOG_TIMESTAMP) << "io_stream_cygfile: fopen failed " << errno << " "
+    log(LOG_TIMESTAMP) << "io_stream_cygfile: fopen(" << name << ") failed " << errno << " "
       << strerror(errno) << endLog;
   }
 }


More information about the Cygwin-apps mailing list