svn commit: samba r19952 - in
branches/SAMBA_4_0/source/lib/replace/test: .
paulg at samba.org
paulg at samba.org
Wed Nov 29 18:44:55 GMT 2006
Author: paulg
Date: 2006-11-29 18:44:54 +0000 (Wed, 29 Nov 2006)
New Revision: 19952
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19952
Log:
Fix socketpair() test case to write to fd(1) and read from fd(0) because
when pipe files are substituting for unix domain sockets, pipes provide
only uni-directional i/o capabilities.
Modified:
branches/SAMBA_4_0/source/lib/replace/test/testsuite.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/test/testsuite.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/test/testsuite.c 2006-11-29 17:55:21 UTC (rev 19951)
+++ branches/SAMBA_4_0/source/lib/replace/test/testsuite.c 2006-11-29 18:44:54 UTC (rev 19952)
@@ -390,14 +390,14 @@
return false;
}
- if (write(sock[0], "automatisch", 12) == -1) {
+ if (write(sock[1], "automatisch", 12) == -1) {
printf("failure: socketpair [\n"
"write() failed: %s\n"
"]\n", strerror(errno));
return false;
}
- if (read(sock[1], buf, 12) == -1) {
+ if (read(sock[0], buf, 12) == -1) {
printf("failure: socketpair [\n"
"read() failed: %s\n"
"]\n", strerror(errno));
More information about the samba-cvs
mailing list