diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index cce94f394c7..a9243128c5a 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -12,7 +12,7 @@ def getAllSourceFiles( arr=None , prefix="." ): if x.startswith( "." ) or x.startswith( "pcre-" ) or x.startswith( "32bit" ) or x.startswith( "mongodb-" ) or x.startswith("debian") or x.startswith( "mongo-cxx-driver" ): continue full = prefix + "/" + x - if os.path.isdir( full ): + if os.path.isdir( full ) and not os.path.islink( full ): getAllSourceFiles( arr , full ) else: if full.endswith( ".cpp" ) or full.endswith( ".h" ) or full.endswith( ".c" ):