* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 2002-03-06  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
|  | 	* path.cc (normalize_posix_path): Avoid runs of '.'s > 2. | ||||||
|  |  | ||||||
| 2002-03-05  Christopher Faylor  <cgf@redhat.com> | 2002-03-05  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* errno.cc: Change EPERM associated text to "Operation not permitted" | 	* errno.cc: Change EPERM associated text to "Operation not permitted" | ||||||
|   | |||||||
| @@ -249,7 +249,11 @@ normalize_posix_path (const char *src, char *dst) | |||||||
| 		    break; | 		    break; | ||||||
| 		} | 		} | ||||||
| 	      else if (src[2] && !isslash (src[2])) | 	      else if (src[2] && !isslash (src[2])) | ||||||
|  | 		{ | ||||||
|  | 		  if (src[2] == '.') | ||||||
|  | 		    return ENOENT; | ||||||
| 		  break; | 		  break; | ||||||
|  | 		} | ||||||
| 	      else | 	      else | ||||||
| 		{ | 		{ | ||||||
| 		  while (dst > dst_start && !isslash (*--dst)) | 		  while (dst > dst_start && !isslash (*--dst)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user