Changeset 5333
- Timestamp:
- 03/01/08 07:29:14 (5 months ago)
- Files:
-
- wired/trunk/wired/files.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/wired/files.c
r5329 r5333 1019 1019 1020 1020 /* track unique inodes */ 1021 number = wi_number_with_value(WI_NUMBER_IN O_T, &sb.ino);1021 number = wi_number_with_value(WI_NUMBER_INT64, &sb.ino); 1022 1022 1023 1023 if(!wi_set_contains_data(wd_files_index_set, number)) { … … 1149 1149 wi_string_t * wd_files_comment(wi_string_t *path) { 1150 1150 wi_file_t *file; 1151 #ifdef HAVE_CORESERVICES_CORESERVICES_H 1152 wi_string_t *realpath, *comment; 1153 #endif 1151 1154 wi_string_t *name, *dirpath, *realdirpath, *commentpath; 1152 1155 wi_string_t *eachname, *eachcomment; 1156 1157 #ifdef HAVE_CORESERVICES_CORESERVICES_H 1158 realpath = wi_string_by_resolving_aliases_in_path(wd_files_real_path(path)); 1159 comment = wi_file_finder_comment(realpath); 1160 1161 if(comment) 1162 return comment; 1163 #endif 1153 1164 1154 1165 name = wi_string_last_path_component(path); … … 1176 1187 void wd_files_set_comment(wi_string_t *path, wi_string_t *comment) { 1177 1188 wi_file_t *file, *tmpfile; 1189 #ifdef HAVE_CORESERVICES_CORESERVICES_H 1190 wi_string_t *realpath; 1191 #endif 1178 1192 wi_string_t *name, *dirpath, *realdirpath, *metapath, *commentpath; 1179 1193 wi_string_t *string, *eachname, *eachcomment; … … 1250 1264 } 1251 1265 } 1266 1267 #ifdef HAVE_CORESERVICES_CORESERVICES_H 1268 realpath = wi_string_by_resolving_aliases_in_path(wd_files_real_path(path)); 1269 1270 if(!wi_file_set_finder_comment(realpath, comment)) 1271 wi_log_info(WI_STR("Could not set Finder comment: %m")); 1272 #endif 1252 1273 } 1253 1274
