… | |
… | |
180 | char buf[MAX_BUF], *cp = buf; |
180 | char buf[MAX_BUF], *cp = buf; |
181 | struct stat statbuf; |
181 | struct stat statbuf; |
182 | |
182 | |
183 | if (!filename || !*filename) |
183 | if (!filename || !*filename) |
184 | return; |
184 | return; |
|
|
185 | |
185 | strcpy (buf, filename); |
186 | assign (buf, filename); |
186 | |
187 | |
187 | while ((cp = strchr (cp + 1, (int) '/'))) |
188 | while ((cp = strchr (cp + 1, (int) '/'))) |
188 | { |
189 | { |
189 | *cp = '\0'; |
190 | *cp = '\0'; |
190 | if (stat (buf, &statbuf) || !S_ISDIR (statbuf.st_mode)) |
191 | if (stat (buf, &statbuf) || !S_ISDIR (statbuf.st_mode)) |