Changeset 637731dd84df22000af7615a62662e35d76413a9
- Timestamp:
- 02/17/11 15:49:15
(2 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1297957755 +0000
- git-parent:
[7d308b7989cb04229e214e3ca04435922d9965c8]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1297957755 +0000
- Message:
fixes #350
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra098b4f |
r637731d |
|
| 176 | 176 | int removed; |
|---|
| 177 | 177 | xmlNodePtr node = vnode; |
|---|
| 178 | | char *name = (char *)node->name; |
|---|
| | 178 | char *name = (char *)xmlGetProp(vnode, (xmlChar *)"name"); |
|---|
| | 179 | if(!name) return 0; |
|---|
| 179 | 180 | LOCKFS(); |
|---|
| 180 | 181 | removed = noit_hash_delete(filtersets, name, strlen(name), |
|---|
| rd83c60e |
r637731d |
|
| 147 | 147 | node = noit_conf_get_section(NULL, xpath); |
|---|
| 148 | 148 | if(!node) goto not_found; |
|---|
| 149 | | noit_filter_remove(node); |
|---|
| | 149 | if(noit_filter_remove(node) == 0) goto not_found; |
|---|
| | 150 | xmlUnlinkNode(node); |
|---|
| | 151 | xmlFreeNode(node); |
|---|
| 150 | 152 | |
|---|
| 151 | 153 | if(noit_conf_write_file(NULL) != 0) |
|---|