Skip to content

Commit

Permalink
Fixed absolute paths in the "simple" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xaionaro committed Mar 17, 2017
1 parent 2eb3a6f commit f1ef5f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,11 @@ int sync_prequeue_loadmark

switch ( ctx_p->flags[MODE] ) {
case MODE_SIMPLE:
return SAFE ( sync_dosync ( path_rel, event_mask, ctx_p, indexes_p ), debug ( 1, "fpath == \"%s\"; evmask == 0x%o", path_rel, event_mask ); return -1; );
if ( path_full == NULL ) {
*path_buf_p = sync_path_rel2abs ( ctx_p, path_rel, -1, path_buf_len_p, *path_buf_p );
path_full = *path_buf_p;
}
return SAFE ( sync_dosync ( path_full, event_mask, ctx_p, indexes_p ), debug ( 1, "fpath == \"%s\"; evmask == 0x%o", path_full, event_mask ); return -1; );

default:
break;
Expand Down

0 comments on commit f1ef5f9

Please sign in to comment.