diff options
| author | Francesco Potortì | 1994-06-03 17:10:42 +0000 |
|---|---|---|
| committer | Francesco Potortì | 1994-06-03 17:10:42 +0000 |
| commit | e9b2b94cd67cc994d1655a1a93a8d88ca6fd5be9 (patch) | |
| tree | b98bddbf067c16b70214c7b7906518adac5bc5db | |
| parent | ddebf5f6064f0c5675909dc521e0f9c34fd7b353 (diff) | |
| download | emacs-e9b2b94cd67cc994d1655a1a93a8d88ca6fd5be9.tar.gz emacs-e9b2b94cd67cc994d1655a1a93a8d88ca6fd5be9.zip | |
* etags.c (absolute_filename): Remove infinite loop bug when
accessing files in directories whose name begins with a dot.
| -rw-r--r-- | lib-src/etags.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index ce54badb3a0..6410c048931 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -3250,16 +3250,16 @@ absolute_filename (file, cwd) | |||
| 3250 | return "."; | 3250 | return "."; |
| 3251 | } | 3251 | } |
| 3252 | slashp = cp; | 3252 | slashp = cp; |
| 3253 | continue; | ||
| 3253 | } | 3254 | } |
| 3254 | else if (slashp[2] == '/' || slashp[2] == '\0') | 3255 | else if (slashp[2] == '/' || slashp[2] == '\0') |
| 3255 | { | 3256 | { |
| 3256 | strcpy (slashp, slashp + 2); | 3257 | strcpy (slashp, slashp + 2); |
| 3258 | continue; | ||
| 3257 | } | 3259 | } |
| 3258 | } | 3260 | } |
| 3259 | else | 3261 | |
| 3260 | { | 3262 | slashp = etags_strchr (slashp + 1, '/'); |
| 3261 | slashp = etags_strchr (slashp + 1, '/'); | ||
| 3262 | } | ||
| 3263 | } | 3263 | } |
| 3264 | 3264 | ||
| 3265 | return res; | 3265 | return res; |