The Samba-Bugzilla – Attachment 9190 Details for
Bug 10124
make test fails with SUITE: "basedir", TEST: "set CCACHE_BASEDIR" - Expected "cache miss" to be 1, got 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
current working directory needs to be stored in canonical form.
0001-Fix-current-working-dir-path-canonicalization.patch (text/plain), 612 bytes, created by
ishikawa
on 2013-09-05 09:36:52 UTC
(
hide
)
Description:
current working directory needs to be stored in canonical form.
Filename:
MIME Type:
Creator:
ishikawa
Created:
2013-09-05 09:36:52 UTC
Size:
612 bytes
patch
obsolete
>diff --git a/ccache.c b/ccache.c >index ea9b39b..498e8ad 100644 >--- a/ccache.c >+++ b/ccache.c >@@ -2465,7 +2484,22 @@ initialize(void) > umask(conf->umask); > } > >- current_working_dir = get_cwd(); >+ /* set current_working_dir in a canonical form */ >+ { >+ char *cp; >+ cp = get_cwd(); >+ if(cp) { >+ /* canonicalize, resolve symlink, etc. */ >+ current_working_dir = x_realpath(cp); >+ free(cp); >+ } >+ if(!current_working_dir) { >+ cc_log("Unable to determine current working directory: %s", >+ strerror(errno)); >+ failed(); >+ } >+ } >+ > } > > /* Reset the global state. Used by the test suite. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10124
: 9190