- Timestamp:
- May 1, 2012, 5:50:32 PM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_fInotify.c
r382 r402 363 363 if ((errnum == ENOENT) || (errnum == EEXIST)) 364 364 { 365 char * epath = sh_util_safe_name (filename); 366 SH_MUTEX_LOCK(mutex_thread_nolog); 367 sh_error_handle( (class == SH_LEVEL_ALLIGNORE) ? 368 ShDFLevel[class] : 369 ShDFLevel[SH_ERR_T_FILE], 370 FIL__, __LINE__, errnum, MSG_E_SUBGPATH, 371 errbuf, _("sh_fInotify_init_internal"), epath); 372 SH_MUTEX_UNLOCK(mutex_thread_nolog); 373 SH_FREE(epath); 365 /* (1) Did it exist at init ? 366 */ 367 if (sh_hash_have_it (filename) >= 0) 368 { 369 /* (2) Do we want to report on it ? 370 */ 371 if (S_FALSE == sh_ignore_chk_del(filename)) 372 { 373 char * epath = sh_util_safe_name (filename); 374 375 SH_MUTEX_LOCK(mutex_thread_nolog); 376 sh_error_handle( (class == SH_LEVEL_ALLIGNORE) ? 377 ShDFLevel[class] : 378 ShDFLevel[SH_ERR_T_FILE], 379 FIL__, __LINE__, errnum, MSG_E_SUBGPATH, 380 errbuf, _("sh_fInotify_init_internal"), epath); 381 SH_MUTEX_UNLOCK(mutex_thread_nolog); 382 SH_FREE(epath); 383 } 384 } 374 385 } 375 386 else … … 457 468 458 469 SH_MUTEX_LOCK(mutex_thread_nolog); 459 sh_error_handle( (-1), FIL__, __LINE__, event->wd, MSG_E_SUBGEN,470 sh_error_handle(SH_ERR_ALL, FIL__, __LINE__, event->wd, MSG_E_SUBGEN, 460 471 _("Watch removed: file path unknown"), 461 472 _("sh_fInotify_process")); -
trunk/src/sh_files.c
r397 r402 451 451 CLEAR_SH_FFLAG_REPORTED(ptr->is_reported); 452 452 } 453 453 454 /* Catchall 454 455 */ -
trunk/src/sh_hash.c
r383 r402 1239 1239 sh_do_decode(ft.checksum, sl_strlen(ft.checksum)); 1240 1240 1241 1241 /* TXT entries are c_mode[0] != 'l' and do not get decoded 1242 */ 1242 1243 if (ft.c_mode[0] == 'l' && linkpath != notalink) 1243 1244 { 1244 1245 sh_do_decode(linkpath, sl_strlen(linkpath)); 1245 1246 } 1247 1246 1248 if ((ft.mark & REC_FLAGS_ATTR) != 0) 1247 1249 { … … 1772 1774 } 1773 1775 1776 /* NOTE: TXT entries are c_mode[0] != 'l' and do not get decoded 1777 */ 1774 1778 if (buf != NULL /* && buf->c_mode[0] == 'l' */ && buf->link_path != NULL) 1775 1779 { -
trunk/src/sh_unix.c
r383 r402 4252 4252 SH_FREE(linknamebuf); 4253 4253 } 4254 else /* not a link */4254 else /* not a link, theFile->c_mode[0] != 'l' */ 4255 4255 { 4256 4256 if (content)
Note:
See TracChangeset
for help on using the changeset viewer.