Subversion リポジトリの参照
Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/realpath.c
Parent Directory
| Revision Log
| Patch
193 |
{ |
{ |
194 |
struct nameidata nd; |
struct nameidata nd; |
195 |
if (pathname && path_lookup(pathname, lookup_flags, &nd) == 0) { |
if (pathname && path_lookup(pathname, lookup_flags, &nd) == 0) { |
196 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,25) |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) |
197 |
char *buf = realpath_from_dentry(nd.path.dentry, nd.path.mnt); |
char *buf = realpath_from_dentry(nd.path.dentry, nd.path.mnt); |
198 |
path_put(&nd.path); |
path_put(&nd.path); |
199 |
#else |
#else |
209 |
{ |
{ |
210 |
struct nameidata nd; |
struct nameidata nd; |
211 |
if (pathname && path_lookup(pathname, lookup_flags ^ LOOKUP_FOLLOW, &nd) == 0) { |
if (pathname && path_lookup(pathname, lookup_flags ^ LOOKUP_FOLLOW, &nd) == 0) { |
212 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,25) |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) |
213 |
char *buf = realpath_from_dentry(nd.path.dentry, nd.path.mnt); |
char *buf = realpath_from_dentry(nd.path.dentry, nd.path.mnt); |
214 |
path_put(&nd.path); |
path_put(&nd.path); |
215 |
#else |
#else |
|
Legend:
Removed from v.990 |
|
changed lines |
|
Added in v.992 |
|
|
| |