Project

General

Profile

Actions

Bug #786

open

Windows - yaml directory paths

Added by Peter Manev over 9 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Target version:
Affected Versions:
Effort:
low
Difficulty:
low
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\


Related issues 1 (0 open1 closed)

Related to Bug #785: windows - yaml magic-file optionClosed03/24/2013Actions
Actions #1

Updated by Victor Julien over 9 years ago

  • Subject changed from Windows compile - directories to Windows - yaml directory paths
Actions #2

Updated by Rich Rumble over 9 years ago

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

Actions #3

Updated by Victor Julien almost 9 years ago

  • Target version set to TBD
Actions #4

Updated by Andreas Herz about 6 years ago

  • Assignee set to Anonymous
Actions #5

Updated by Victor Julien about 4 years ago

  • Effort set to low
  • Difficulty set to low
Actions #6

Updated by Andreas Herz over 3 years ago

  • Assignee set to Community Ticket
Actions #7

Updated by Victor Julien over 3 years ago

  • Label Beginner, Outreachy added
Actions #8

Updated by Shivani Bhardwaj about 2 years ago

  • Label C added
Actions

Also available in: Atom PDF