724863
--- ttmkfdir-3.0.9/directory.cpp.back	2005-10-08 14:25:37.839328408 +0800
724863
+++ ttmkfdir-3.0.9/directory.cpp	2005-10-08 14:26:00.021956136 +0800
724863
@@ -1,5 +1,6 @@
724863
 #include <cctype>
724863
 #include <dirent.h>
724863
+#include <stdio.h>
724863
 #include <sys/stat.h>
724863
 #include <unistd.h>
724863
 
724863
@@ -13,6 +14,10 @@
724863
 directory::scan (const std::string &dir)
724863
 {
724863
     DIR *ttfdir = opendir(dir.c_str ());
724863
+    if (!ttfdir) {
724863
+        printf("%s is not exist!\n", dir.c_str ());
724863
+        exit(-1);
724863
+    }
724863
 
724863
     this->clear ();
724863
     dirpath = dir;