Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fixed error with absolute pathnames when opening a repo on Win32 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | c841af0d501417c67cc1e8758ebbb853 |
User & Date: | mjanssen 2007-09-24 19:42:15 |
Context
2007-09-24
| ||
20:21 | Corrected "fossil user password" error message. It had an extra user check-in: df3d6cbf user: mjanssen tags: trunk | |
19:42 | Fixed error with absolute pathnames when opening a repo on Win32 check-in: c841af0d user: mjanssen tags: trunk | |
19:32 | Build from build directory check-in: 5a30fa45 user: anonymous tags: trunk | |
Changes
Changes to Makefile.w32.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# as BCC, unless you are cross-compiling. This C compiler builds # the finished binary for fossil. The BCC compiler above is used # for building intermediate code-generator tools. # #TCC = gcc -O6 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage #TCC = gcc -g -Os -Wall TCC = gcc -g -Os -Wall -DFOSSIL_I18N=0 #### Extra arguments for linking the finished binary. Fossil needs # to link against the Z-Lib compression library. There are no # other dependencies. We sometimes add the -static option here # so that we can build a static executable that will run in a # chroot jail. # |
| |
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# as BCC, unless you are cross-compiling. This C compiler builds
# the finished binary for fossil. The BCC compiler above is used
# for building intermediate code-generator tools.
#
#TCC = gcc -O6
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
#TCC = gcc -g -Os -Wall
TCC = gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include
#### Extra arguments for linking the finished binary. Fossil needs
# to link against the Z-Lib compression library. There are no
# other dependencies. We sometimes add the -static option here
# so that we can build a static executable that will run in a
# chroot jail.
#
|
Changes to src/file.c.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
** Compute a canonical pathname for a file or directory. ** Make the name absolute if it is relative. ** Remove redundant / characters ** Remove all /./ path elements. ** Convert /A/../ to just / */ void file_canonical_name(const char *zOrigName, Blob *pOut){ if( zOrigName[0]=='/' ){ blob_set(pOut, zOrigName); blob_materialize(pOut); }else{ char zPwd[2000]; if( getcwd(zPwd, sizeof(zPwd)-20)==0 ){ fprintf(stderr, "pwd too big: max %d\n", sizeof(zPwd)-20); exit(1); |
| |
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
** Compute a canonical pathname for a file or directory.
** Make the name absolute if it is relative.
** Remove redundant / characters
** Remove all /./ path elements.
** Convert /A/../ to just /
*/
void file_canonical_name(const char *zOrigName, Blob *pOut){
if( zOrigName[0]=='/' || (zOrigName[1]==':' && zOrigName[2]=='\\') ){
blob_set(pOut, zOrigName);
blob_materialize(pOut);
}else{
char zPwd[2000];
if( getcwd(zPwd, sizeof(zPwd)-20)==0 ){
fprintf(stderr, "pwd too big: max %d\n", sizeof(zPwd)-20);
exit(1);
|