make export doesn't work on Pike 7.3
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3058
Reported by Marek Habersack, The Caudium Group grendel@caudium.net
It fails to create the tarball because of the code that doesn't check whether file_stat returns 0 in export.pike and because of two entries removed from the refdoc/ dir. The patch below fixes this problem. Diff against the today's copy of Pike 7.3.
diff -U3 -r 7.3/bin/export.pike 7.3.new/bin/export.pike
--- 7.3/bin/export.pike Sat Apr 27 21:08:01 2002
+++ 7.3.new/bin/export.pike Sat Apr 27 20:42:18 2002
@@ -115,7 +115,9 @@
continue;
werror("%O\n",line);
string name=vpath+line;
- if(file_stat(name)->isdir)
+ object fs = file_stat(name);
+
+ if(fs && fs->isdir)
ret += get_files(name);
else
ret += ({ name });
diff -U3 -r 7.3/src/export_list 7.3.new/src/export_list
--- 7.3/src/export_list Sat Apr 27 21:05:50 2002
+++ 7.3.new/src/export_list Sat Apr 27 20:50:29 2002
@@ -13,7 +13,6 @@
/bin
/man
/refdoc/bin
-/refdoc/not_extracted
/refdoc/presentation
/refdoc/src_images
/refdoc/structure
@@ -24,4 +23,3 @@
/refdoc/tags.txt
/refdoc/template.xsl
/refdoc/xml.txt
-/refdoc/.cvsignore