Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 1 | /* scan-tree.c |
| 2 | * |
| 3 | * Copyright (C) 2008-2009 Lars Hjemli |
Jason A. Donenfeld | 7f08e03 | 2012-07-12 20:00:40 +0200 | [diff] [blame] | 4 | * Copyright (C) 2010, 2012 Jason A. Donenfeld <Jason@zx2c4.com> |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 5 | * |
| 6 | * Licensed under GNU General Public License v2 |
| 7 | * (see COPYING for full license text) |
| 8 | */ |
| 9 | |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 10 | #include "cgit.h" |
John Keeping | 8f20879 | 2013-04-06 11:37:59 +0100 | [diff] [blame] | 11 | #include "scan-tree.h" |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 12 | #include "configfile.h" |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 13 | #include "html.h" |
| 14 | |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 15 | /* return 1 if path contains a objects/ directory and a HEAD file */ |
| 16 | static int is_git_dir(const char *path) |
| 17 | { |
| 18 | struct stat st; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 19 | struct strbuf pathbuf = STRBUF_INIT; |
| 20 | int result = 0; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 21 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 22 | strbuf_addf(&pathbuf, "%s/objects", path); |
| 23 | if (stat(pathbuf.buf, &st)) { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 24 | if (errno != ENOENT) |
| 25 | fprintf(stderr, "Error checking path %s: %s (%d)\n", |
| 26 | path, strerror(errno), errno); |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 27 | goto out; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 28 | } |
| 29 | if (!S_ISDIR(st.st_mode)) |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 30 | goto out; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 31 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 32 | strbuf_reset(&pathbuf); |
| 33 | strbuf_addf(&pathbuf, "%s/HEAD", path); |
| 34 | if (stat(pathbuf.buf, &st)) { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 35 | if (errno != ENOENT) |
| 36 | fprintf(stderr, "Error checking path %s: %s (%d)\n", |
| 37 | path, strerror(errno), errno); |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 38 | goto out; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 39 | } |
| 40 | if (!S_ISREG(st.st_mode)) |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 41 | goto out; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 42 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 43 | result = 1; |
| 44 | out: |
| 45 | strbuf_release(&pathbuf); |
| 46 | return result; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 47 | } |
| 48 | |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 49 | struct cgit_repo *repo; |
| 50 | repo_config_fn config_fn; |
| 51 | |
| 52 | static void repo_config(const char *name, const char *value) |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 53 | { |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 54 | config_fn(repo, name, value); |
| 55 | } |
| 56 | |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 57 | static int gitconfig_config(const char *key, const char *value, void *cb) |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 58 | { |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 59 | if (!strcmp(key, "gitweb.owner")) |
| 60 | config_fn(repo, "owner", value); |
| 61 | else if (!strcmp(key, "gitweb.description")) |
| 62 | config_fn(repo, "desc", value); |
| 63 | else if (!strcmp(key, "gitweb.category")) |
| 64 | config_fn(repo, "section", value); |
| 65 | else if (!prefixcmp(key, "cgit.")) |
| 66 | config_fn(repo, key + 5, value); |
| 67 | |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 68 | return 0; |
| 69 | } |
| 70 | |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 71 | static char *xstrrchr(char *s, char *from, int c) |
| 72 | { |
| 73 | while (from >= s && *from != c) |
| 74 | from--; |
| 75 | return from < s ? NULL : from; |
| 76 | } |
| 77 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 78 | static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn) |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 79 | { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 80 | struct stat st; |
| 81 | struct passwd *pwd; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 82 | size_t pathlen; |
| 83 | struct strbuf rel = STRBUF_INIT; |
| 84 | char *p, *slash; |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 85 | int n; |
Lars Hjemli | e16f178 | 2009-08-18 17:17:41 +0200 | [diff] [blame] | 86 | size_t size; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 87 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 88 | if (stat(path->buf, &st)) { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 89 | fprintf(stderr, "Error accessing %s: %s (%d)\n", |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 90 | path->buf, strerror(errno), errno); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 91 | return; |
| 92 | } |
Felix Hanley | e0c6f23 | 2010-11-08 19:41:13 +0100 | [diff] [blame] | 93 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 94 | strbuf_addch(path, '/'); |
| 95 | pathlen = path->len; |
Felix Hanley | e0c6f23 | 2010-11-08 19:41:13 +0100 | [diff] [blame] | 96 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 97 | if (ctx.cfg.strict_export) { |
| 98 | strbuf_addstr(path, ctx.cfg.strict_export); |
| 99 | if(stat(path->buf, &st)) |
| 100 | return; |
| 101 | strbuf_setlen(path, pathlen); |
| 102 | } |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 103 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 104 | strbuf_addstr(path, "noweb"); |
| 105 | if (!stat(path->buf, &st)) |
| 106 | return; |
| 107 | strbuf_setlen(path, pathlen); |
| 108 | |
| 109 | if (strncmp(base, path->buf, strlen(base))) |
| 110 | strbuf_addbuf(&rel, path); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 111 | else |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 112 | strbuf_addstr(&rel, path->buf + strlen(base) + 1); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 113 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 114 | if (!strcmp(rel.buf + rel.len - 5, "/.git")) |
| 115 | strbuf_setlen(&rel, rel.len - 5); |
John Keeping | 9a725f4 | 2013-04-16 18:39:58 +0100 | [diff] [blame^] | 116 | else if (rel.len && rel.buf[rel.len - 1] == '/') |
| 117 | strbuf_setlen(&rel, rel.len - 1); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 118 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 119 | repo = cgit_add_repo(rel.buf); |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 120 | config_fn = fn; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 121 | if (ctx.cfg.enable_git_config) { |
| 122 | strbuf_addstr(path, "config"); |
| 123 | git_config_from_file(gitconfig_config, path->buf, NULL); |
| 124 | strbuf_setlen(path, pathlen); |
| 125 | } |
Lukas Fleischer | 53bc747 | 2013-03-03 16:04:29 +0100 | [diff] [blame] | 126 | |
Jason A. Donenfeld | 2e4a941 | 2010-07-29 19:47:50 +0200 | [diff] [blame] | 127 | if (ctx.cfg.remove_suffix) |
| 128 | if ((p = strrchr(repo->url, '.')) && !strcmp(p, ".git")) |
| 129 | *p = '\0'; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 130 | repo->path = xstrdup(path->buf); |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 131 | while (!repo->owner) { |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 132 | if ((pwd = getpwuid(st.st_uid)) == NULL) { |
| 133 | fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 134 | path->buf, strerror(errno), errno); |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 135 | break; |
| 136 | } |
| 137 | if (pwd->pw_gecos) |
| 138 | if ((p = strchr(pwd->pw_gecos, ','))) |
| 139 | *p = '\0'; |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 140 | repo->owner = xstrdup(pwd->pw_gecos ? pwd->pw_gecos : pwd->pw_name); |
Jason A. Donenfeld | 119397b | 2010-07-29 20:38:01 +0200 | [diff] [blame] | 141 | } |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 142 | |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 143 | if (repo->desc == cgit_default_repo_desc || !repo->desc) { |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 144 | strbuf_addstr(path, "description"); |
| 145 | if (!stat(path->buf, &st)) |
| 146 | readfile(path->buf, &repo->desc, &size); |
| 147 | strbuf_setlen(path, pathlen); |
Jason A. Donenfeld | b56be4b | 2012-07-11 04:24:01 +0200 | [diff] [blame] | 148 | } |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 149 | |
Lars Hjemli | 515edb0 | 2010-08-21 15:08:01 +0200 | [diff] [blame] | 150 | if (!repo->readme) { |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 151 | strbuf_addstr(path, "README.html"); |
| 152 | if (!stat(path->buf, &st)) |
Lars Hjemli | 515edb0 | 2010-08-21 15:08:01 +0200 | [diff] [blame] | 153 | repo->readme = "README.html"; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 154 | strbuf_setlen(path, pathlen); |
Lars Hjemli | 515edb0 | 2010-08-21 15:08:01 +0200 | [diff] [blame] | 155 | } |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 156 | if (ctx.cfg.section_from_path) { |
| 157 | n = ctx.cfg.section_from_path; |
| 158 | if (n > 0) { |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 159 | slash = rel.buf; |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 160 | while (slash && n && (slash = strchr(slash, '/'))) |
| 161 | n--; |
| 162 | } else { |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 163 | slash = rel.buf + rel.len; |
| 164 | while (slash && n && (slash = xstrrchr(rel.buf, slash, '/'))) |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 165 | n++; |
| 166 | } |
| 167 | if (slash && !n) { |
| 168 | *slash = '\0'; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 169 | repo->section = xstrdup(rel.buf); |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 170 | *slash = '/'; |
| 171 | if (!prefixcmp(repo->name, repo->section)) { |
| 172 | repo->name += strlen(repo->section); |
| 173 | if (*repo->name == '/') |
| 174 | repo->name++; |
| 175 | } |
| 176 | } |
| 177 | } |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 178 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 179 | strbuf_addstr(path, "cgitrc"); |
| 180 | if (!stat(path->buf, &st)) |
| 181 | parse_configfile(xstrdup(path->buf), &repo_config); |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 182 | |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 183 | strbuf_release(&rel); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 184 | } |
| 185 | |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 186 | static void scan_path(const char *base, const char *path, repo_config_fn fn) |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 187 | { |
Johan Herland | 682adbc | 2010-11-15 20:40:43 +0100 | [diff] [blame] | 188 | DIR *dir = opendir(path); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 189 | struct dirent *ent; |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 190 | struct strbuf pathbuf = STRBUF_INIT; |
| 191 | size_t pathlen = strlen(path); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 192 | struct stat st; |
| 193 | |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 194 | if (!dir) { |
| 195 | fprintf(stderr, "Error opening directory %s: %s (%d)\n", |
| 196 | path, strerror(errno), errno); |
| 197 | return; |
| 198 | } |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 199 | |
| 200 | strbuf_add(&pathbuf, path, strlen(path)); |
| 201 | if (is_git_dir(pathbuf.buf)) { |
| 202 | add_repo(base, &pathbuf, fn); |
Johan Herland | 682adbc | 2010-11-15 20:40:43 +0100 | [diff] [blame] | 203 | goto end; |
| 204 | } |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 205 | strbuf_addstr(&pathbuf, "/.git"); |
| 206 | if (is_git_dir(pathbuf.buf)) { |
| 207 | add_repo(base, &pathbuf, fn); |
Johan Herland | 682adbc | 2010-11-15 20:40:43 +0100 | [diff] [blame] | 208 | goto end; |
| 209 | } |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 210 | /* |
| 211 | * Add one because we don't want to lose the trailing '/' when we |
| 212 | * reset the length of pathbuf in the loop below. |
| 213 | */ |
| 214 | pathlen++; |
Jason A. Donenfeld | bdae1d8 | 2013-03-03 23:21:33 -0500 | [diff] [blame] | 215 | while ((ent = readdir(dir)) != NULL) { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 216 | if (ent->d_name[0] == '.') { |
| 217 | if (ent->d_name[1] == '\0') |
| 218 | continue; |
| 219 | if (ent->d_name[1] == '.' && ent->d_name[2] == '\0') |
| 220 | continue; |
Johan Herland | df52279 | 2010-11-15 20:41:00 +0100 | [diff] [blame] | 221 | if (!ctx.cfg.scan_hidden_path) |
| 222 | continue; |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 223 | } |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 224 | strbuf_setlen(&pathbuf, pathlen); |
| 225 | strbuf_addstr(&pathbuf, ent->d_name); |
| 226 | if (stat(pathbuf.buf, &st)) { |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 227 | fprintf(stderr, "Error checking path %s: %s (%d)\n", |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 228 | pathbuf.buf, strerror(errno), errno); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 229 | continue; |
| 230 | } |
| 231 | if (S_ISDIR(st.st_mode)) |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 232 | scan_path(base, pathbuf.buf, fn); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 233 | } |
Johan Herland | 682adbc | 2010-11-15 20:40:43 +0100 | [diff] [blame] | 234 | end: |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 235 | strbuf_release(&pathbuf); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 236 | closedir(dir); |
| 237 | } |
| 238 | |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 239 | #define lastc(s) s[strlen(s) - 1] |
| 240 | |
| 241 | void scan_projects(const char *path, const char *projectsfile, repo_config_fn fn) |
| 242 | { |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 243 | struct strbuf line = STRBUF_INIT; |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 244 | FILE *projects; |
| 245 | int err; |
Lukas Fleischer | 53bc747 | 2013-03-03 16:04:29 +0100 | [diff] [blame] | 246 | |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 247 | projects = fopen(projectsfile, "r"); |
| 248 | if (!projects) { |
| 249 | fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n", |
| 250 | projectsfile, strerror(errno), errno); |
Stefan Gehn | f15c583 | 2011-03-26 09:51:39 +0100 | [diff] [blame] | 251 | return; |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 252 | } |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 253 | while (strbuf_getline(&line, projects, '\n') != EOF) { |
| 254 | if (!line.len) |
| 255 | continue; |
| 256 | strbuf_insert(&line, 0, "/", 1); |
| 257 | strbuf_insert(&line, 0, path, strlen(path)); |
| 258 | scan_path(path, line.buf, fn); |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 259 | } |
| 260 | if ((err = ferror(projects))) { |
| 261 | fprintf(stderr, "Error reading from projectsfile %s: %s (%d)\n", |
| 262 | projectsfile, strerror(err), err); |
| 263 | } |
| 264 | fclose(projects); |
John Keeping | fb3655d | 2013-04-06 10:28:57 +0100 | [diff] [blame] | 265 | strbuf_release(&line); |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 266 | } |
| 267 | |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 268 | void scan_tree(const char *path, repo_config_fn fn) |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 269 | { |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 270 | scan_path(path, path, fn); |
Lars Hjemli | 93397a7 | 2008-09-15 00:07:12 +0200 | [diff] [blame] | 271 | } |