ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.1.x/src/modules.c
(Generate patch)

Comparing ircd-hybrid/branches/8.1.x/src/modules.c (file contents):
Revision 2342 by michael, Sat May 11 17:34:41 2013 UTC vs.
Revision 2343 by michael, Wed Jul 3 18:13:17 2013 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines