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

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 990 by kumaneko, Sat Feb 16 07:51:34 2008 UTC revision 992 by kumaneko, Mon Feb 18 01:40:06 2008 UTC
# Line 193  char *realpath(const char *pathname) Line 193  char *realpath(const char *pathname)
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
# Line 209  char *realpath_nofollow(const char *path Line 209  char *realpath_nofollow(const char *path
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

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