Changeset 82


Ignore:
Timestamp:
01/17/07 12:20:41 (18 years ago)
Author:
tim
Message:

bugfixes for path filtering

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/regfi.c

    r81 r82  
    16731673       && strcasecmp(subkey->keyname, subkey_name) == 0)
    16741674      found = true;
    1675 
    1676     regfi_key_free(subkey);
    1677     subkey = regfi_iterator_next_subkey(i);
     1675    else
     1676    {
     1677      regfi_key_free(subkey);
     1678      subkey = regfi_iterator_next_subkey(i);
     1679    }
    16781680  }
    16791681
     
    16841686  }
    16851687
     1688  regfi_key_free(subkey);
    16861689  return true;
    16871690}
  • trunk/src/reglookup.c

    r81 r82  
    758758            path_filter);
    759759
     760  /* Special check for '/' path filter */
     761  if(path[0] == NULL)
     762  {
     763    if(print_verbose)
     764      fprintf(stderr, "VERBOSE: Found final path element as root key.\n");
     765    return 2;
     766  }
     767
    760768  if(!regfi_iterator_walk_path(iter, tmp_path))
    761769  {
     
    785793    if(print_verbose)
    786794      fprintf(stderr, "VERBOSE: Found final path element as key.\n");
     795
     796    if(!regfi_iterator_down(iter))
     797      bailOut(2, "ERROR: Unexpected error on traversing path filter key.\n");
     798
    787799    return 2;
    788800  }
Note: See TracChangeset for help on using the changeset viewer.