[BACK]Return to patch-lib_replace_test_os2__delete.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / samba33 / patches

File: [cvs.NetBSD.org] / pkgsrc / net / samba33 / patches / Attic / patch-lib_replace_test_os2__delete.c (download)

Revision 1.1, Tue Aug 2 14:06:20 2011 UTC (11 years, 5 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3

Add workaround for NetBSD 5.99.54 as samba35.

$NetBSD: patch-lib_replace_test_os2__delete.c,v 1.1 2011/08/02 14:06:20 taca Exp $

Workaround for NetBSD 5.99.54.

--- lib/replace/test/os2_delete.c.orig	2011-07-24 19:09:38.000000000 +0000
+++ lib/replace/test/os2_delete.c
@@ -112,6 +112,7 @@ int test_readdir_os2_delete(void)
 	while (1) {
 		int n = os2_delete(d);
 		if (n == 0) break;
+		if (test_readdir_os2_delete_ret != 0) break; /* if FAILED */
 		total_deleted += n;
 	}
 	closedir(d);