/[svn]/ircd-hybrid/trunk/src/modules.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/modules.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2344 by michael, Sat May 11 17:35:07 2013 UTC revision 2345 by michael, Wed Jul 3 18:17:39 2013 UTC
# Line 370  load_core_modules(int warn) Line 370  load_core_modules(int warn)
370   *   *
371   * input        - pointer to path   * input        - pointer to path
372   *              - flagged as core module or not   *              - flagged as core module or not
373   * output       - -1 if error   * output       - -1 if error
374   * side effects - module is loaded if found.   * side effects - module is loaded if found.
375   */   */
376  int  int
# Line 390  load_one_module(const char *path) Line 390  load_one_module(const char *path)
390        continue;        continue;
391    
392      if (strstr(modpath, "../") == NULL &&      if (strstr(modpath, "../") == NULL &&
393          strstr(modpath, "/..") == NULL)          strstr(modpath, "/..") == NULL)
394        if (!stat(modpath, &statbuf))        if (!stat(modpath, &statbuf))
395          if (S_ISREG(statbuf.st_mode))  /* Regular files only please */          if (S_ISREG(statbuf.st_mode))  /* Regular files only please */
396            return load_a_module(modpath, 1);            return load_a_module(modpath, 1);

Legend:
Removed from v.2344  
changed lines
  Added in v.2345

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28