131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
const char *zFilename, /* name of file or directory to inspect. */
struct fossilStat *buf, /* pointer to buffer where info should go. */
int eFType /* Look at symlink itself if RepoFILE and enabled. */
){
int rc;
void *zMbcs = fossil_utf8_to_path(zFilename, 0);
#if !defined(_WIN32)
if( (eFType=RepoFILE && db_allow_symlinks())
|| eFType==SymFILE ){
/* Symlinks look like files whose content is the name of the target */
rc = lstat(zMbcs, buf);
}else{
/* Symlinks look like the object to which they point */
rc = stat(zMbcs, buf);
}
|
|
|
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
const char *zFilename, /* name of file or directory to inspect. */
struct fossilStat *buf, /* pointer to buffer where info should go. */
int eFType /* Look at symlink itself if RepoFILE and enabled. */
){
int rc;
void *zMbcs = fossil_utf8_to_path(zFilename, 0);
#if !defined(_WIN32)
if( (eFType==RepoFILE && db_allow_symlinks())
|| eFType==SymFILE ){
/* Symlinks look like files whose content is the name of the target */
rc = lstat(zMbcs, buf);
}else{
/* Symlinks look like the object to which they point */
rc = stat(zMbcs, buf);
}
|