[ekg2-commit] ekg2: dcc.c (HEAD) [peres]

CVS commit cvs w toxygen.net
Czw, 10 Maj 2007, 21:58:47 CEST


Module name:	ekg2
Changes by:	peres	2007-05-10 21:58:45

Modified files:
	dcc.c

Log message:
Update io_* formats to contain more info.

Index: dcc.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/gg/dcc.c,v
diff -d -u -r1.40 -r1.41
--- dcc.c	10 May 2007 19:16:46 -0000	1.40
+++ dcc.c	10 May 2007 19:58:45 -0000	1.41
@@ -265,12 +265,15 @@
 		}
 		
 		if ((fd = open(fn, O_RDONLY|O_NONBLOCK)) == -1) {
-			printq("io_cantopen");
+			if (errno == ENXIO)
+				printq("io_nonfile", params[2]);
+			else
+				printq("io_cantopen", params[2], strerror(errno));
 			return -1;
 		}
 
 		if (!stat(fn, &st) && !S_ISREG(st.st_mode)) {
-			printq("io_nonfile");
+			printq("io_nonfile", params[2]);
 			return -1;
 		}
 


Więcej informacji o liście dyskusyjnej ekg2-commit