Browse code

fix build error

git-svn: trunk@4044

Török Edvin authored on 2008/07/31 23:48:33
Showing 1 changed files
... ...
@@ -3761,7 +3761,7 @@ rfc1341(message *m, const char *dir)
3761 3761
 			free(id);
3762 3762
 			return -1;
3763 3763
 		}
3764
-		if(statb.st_mode&(S_IRWXG|S_IRWXO))
3764
+		if(statb.st_mode & 077)
3765 3765
 			cli_warnmsg("Insecure partial directory %s (mode 0%o)\n",
3766 3766
 				pdir,
3767 3767
 #ifdef	ACCESSPERMS
... ...
@@ -3869,11 +3869,9 @@ rfc1341(message *m, const char *dir)
3869 3869
 					struct stat statb;
3870 3870
 					const char *dentry_idpart;
3871 3871
 
3872
-#ifndef  C_CYGWIN
3873
-					if(dent->d_ino == 0)
3872
+					if(!strcmp(".",dent->d_name) ||
3873
+							!strcmp("..", dent->d_name))
3874 3874
 						continue;
3875
-#endif
3876
-
3877 3875
 					snprintf(fullname, sizeof(fullname) - 1,
3878 3876
 						"%s/%s", pdir, dent->d_name);
3879 3877
 					dentry_idpart = strchr(dent->d_name, '_');