オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/realpath.c

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

revision 2911 by kumaneko, Sat Aug 15 12:21:38 2009 UTC revision 2915 by kumaneko, Mon Aug 17 10:56:21 2009 UTC
# Line 311  char *ccs_realpath_from_path(struct path Line 311  char *ccs_realpath_from_path(struct path
311  }  }
312    
313  /**  /**
  * ccs_realpath - Get realpath of a pathname.  
  *  
  * @pathname: The pathname to solve.  
  *  
  * Returns the realpath of @pathname on success, NULL otherwise.  
  */  
 char *ccs_realpath(const char *pathname)  
 {  
         struct path path;  
         if (ccs_kern_path(pathname, ccs_lookup_flags, &path) == 0) {  
                 char *buf = ccs_realpath_from_path(&path);  
                 path_put(&path);  
                 return buf;  
         }  
         return NULL;  
 }  
   
 /**  
314   * ccs_symlink_path - Get symlink's pathname.   * ccs_symlink_path - Get symlink's pathname.
315   *   *
316   * @pathname: The pathname to solve.   * @pathname: The pathname to solve.

Legend:
Removed from v.2911  
changed lines
  Added in v.2915

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26