Project

General

Profile

Actions

Bug #786

closed
PM CT

Windows - yaml directory paths

Bug #786: Windows - yaml directory paths

Added by Peter Manev about 13 years ago. Updated almost 3 years ago.

Status:
Closed
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 Suricata - Bug #785: windows - yaml magic-file optionClosedActions

VJ Updated by Victor Julien about 13 years ago Actions #1

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

RR Updated by Rich Rumble almost 13 years ago Actions #2

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

VJ Updated by Victor Julien over 12 years ago Actions #3

  • Target version set to TBD

AH Updated by Andreas Herz over 9 years ago Actions #4

  • Assignee set to Anonymous

VJ Updated by Victor Julien almost 8 years ago Actions #5

  • Effort set to low
  • Difficulty set to low

AH Updated by Andreas Herz about 7 years ago Actions #6

  • Assignee set to Community Ticket

VJ Updated by Victor Julien about 7 years ago Actions #7

  • Label Beginner, Outreachy added

SB Updated by Shivani Bhardwaj over 5 years ago Actions #8

  • Label C added

PA Updated by Philippe Antoine almost 3 years ago Actions #9

  • Status changed from New to Closed

This looks fixed cf configure.ac: e_defaultruledir="$e_winbase\\\\rules\\\\" cf commit e048a74ecdfdfe468618d7ce1a3e9e570915ea3e

Actions

Also available in: PDF Atom