build: Do not recurse on symlinks to directories when building tarballs
[samba.git] / buildtools / wafsamba / samba_dist.py
index 4dacba23d2e4789e01d4ec2c1aa5db3abedc84b8..2e52820697b39872c51acd0179575a9f14cff95e 100644 (file)
@@ -182,7 +182,7 @@ def dist(appname='', version=''):
 
             absfile = os.path.join(srcdir, file)
 
-            if os.path.isdir(absfile):
+            if os.path.isdir(absfile) and not os.path.islink(absfile):
                 destdir = destfile
                 dir = file
                 files = list_directory_files(dir)