* dir.cc (mkdir): Check for trailing /. or /.. component.

(rmdir): Ditto.
	* path.cc (has_dot_last_component): New function.
	* path.h (has_dot_last_component): Add declaration.
This commit is contained in:
Corinna Vinschen
2005-09-29 16:23:22 +00:00
parent 9a7b0aad2a
commit f6c9ff6646
3 changed files with 39 additions and 0 deletions

View File

@ -289,6 +289,7 @@ has_exec_chars (const char *buf, int len)
int pathmatch (const char *path1, const char *path2) __attribute__ ((regparm (2)));
int pathnmatch (const char *path1, const char *path2, int len) __attribute__ ((regparm (2)));
bool has_dot_last_component (const char *dir) __attribute__ ((regparm (1)));
bool fnunmunge (char *, const char *) __attribute__ ((regparm (2)));