# | Line 370 | Line 370 | load_core_modules(int warn) | |
---|---|---|
370 | * | |
371 | * input - pointer to path | |
372 | * - flagged as core module or not | |
373 | < | * output - -1 if error |
373 | > | * output - -1 if error |
374 | * side effects - module is loaded if found. | |
375 | */ | |
376 | int | |
# | Line 390 | Line 390 | load_one_module(const char *path) | |
390 | continue; | |
391 | ||
392 | if (strstr(modpath, "../") == NULL && | |
393 | < | strstr(modpath, "/..") == NULL) |
393 | > | strstr(modpath, "/..") == NULL) |
394 | if (!stat(modpath, &statbuf)) | |
395 | if (S_ISREG(statbuf.st_mode)) /* Regular files only please */ | |
396 | return load_a_module(modpath, 1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |