os2.c
changeset 1506 c3985c29d018
parent 1495 c8a61d136f26
child 1508 3f0d2f3147c2
--- a/os2.c	Mon Mar 14 19:27:19 2005 +0000
+++ b/os2.c	Tue Mar 15 12:21:15 2005 +0000
@@ -112,8 +112,8 @@
 		while ((dirent = readdir(dir)) != NULL) {
 			append_path(filename, _fios_path, dirent->d_name);
 			if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) &&
-					strcmp(fd.cFileName, ".") != 0 &&
-					strcmp(fd.cFileName, "..") != 0) {
+					strcmp(filename, ".") != 0 &&
+					strcmp(filename, "..") != 0) {
 				fios = FiosAlloc();
 				fios->type = FIOS_TYPE_DIR;
 				fios->mtime = 0;
@@ -239,10 +239,9 @@
 	if (dir != NULL) {
 		while ((dirent = readdir(dir)) != NULL) {
 			append_path(filename, _fios_path, dirent->d_name);
-			if (!stat(filename, &sb) && (S_ISDIR(sb.st_mode)
-						strcmp(dirent->d_name, ".") != 0 &&
-						strcmp(dirent->d_name, "..") != 0 &&
-					) {
+			if (!stat(filename, &sb) && S_ISDIR(sb.st_mode) &&
+					strcmp(filename, ".") != 0 &&
+					strcmp(filename, "..") != 0) {
 				fios = FiosAlloc();
 				fios->type = FIOS_TYPE_DIR;
 				fios->mtime = 0;
@@ -679,5 +678,6 @@
 
 bool InsertTextBufferClipboard(Textbuf *tb)
 {
+	// TODO
 	return false;
 }