[asterisk-commits] mnicholson: testsuite/asterisk/trunk r377 - /asterisk/trunk/asttest/lib/lua/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 9 11:01:19 CDT 2010


Author: mnicholson
Date: Wed Jun  9 11:01:15 2010
New Revision: 377

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=377
Log:
Silently ignore files when don't know how to symlink when building the work area instead of exiting with an error.

Modified:
    asterisk/trunk/asttest/lib/lua/astlib.c

Modified: asterisk/trunk/asttest/lib/lua/astlib.c
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/lua/astlib.c?view=diff&rev=377&r1=376&r2=377
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.c (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.c Wed Jun  9 11:01:15 2010
@@ -160,12 +160,18 @@
 				goto e_closedir;
 			}
 		} else {
+			/* XXX we don't know what kind of file this is so we
+			 * will ignore it silently, at some point in the future
+			 * we should log this event somewhere */
+			continue;
+#if 0
 			/* unsupported file type */
 			lua_pushstring(L, "don't know how to symlink '");
 			lua_pushstring(L, src_path);
 			lua_pushstring(L, "' (unsupported file type)");
 			lua_concat(L, 3);
 			goto e_closedir;
+#endif
 		}
 	}
 




More information about the asterisk-commits mailing list