Bug #786
closed
Windows - yaml directory paths
Added by Peter Manev over 11 years ago.
Updated over 1 year ago.
Label:
Beginner, C, Outreachy
Description
When compiling under windows, the resulting yaml contains:
default-rule-path: C:\\Program Files (x86)\\Suricata\\rules
if used like that - Suricata does not load any rules.
If it is changed to :
default-rule-path: C:\\Program Files (x86)\\Suricata\\rules\\
or
default-rule-path: C:\Program Files (x86)\Suricata\rules\
Suricata loads fine. (notice the ending backslash)
The same goes for all other directory variables, ex:
default-log-dir: C:\Program Files (x86)\Suricata\log\
- Subject changed from Windows compile - directories to Windows - yaml directory paths
I'd like to add that there are issues around the windows paths in the YAML file, and the fix as indicated by Peter does work. Something to keep in mind as well, is that windows can use the Forward slash in paths, but adding a trailing fwd slash to the path (C:/Program Files (x86)/Suricata/rules/) results in double slash being added as well and the path fails to work:
C:/Program Files (x86)/Suricata/rules/\\
I was trying to work around the "bug" when I finally found this ticket.
-rich
- Target version set to TBD
- Assignee set to Anonymous
- Effort set to low
- Difficulty set to low
- Assignee set to Community Ticket
- Label Beginner, Outreachy added
- Status changed from New to Closed
This looks fixed cf configure.ac: e_defaultruledir="$e_winbase\\\\rules\\\\"
cf commit e048a74ecdfdfe468618d7ce1a3e9e570915ea3e
Also available in: Atom
PDF