Subversion リポジトリの参照
Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/realpath.c
Parent Directory
| Revision Log
| Patch
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 |
|
|
|