-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quote path variables that may contain spaces. #84
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
file(COPY ${PROJECT_SOURCE_DIR}/scripts/debian/falco | ||
DESTINATION ${PROJECT_BINARY_DIR}/scripts/debian) | ||
file(COPY "${PROJECT_SOURCE_DIR}/scripts/debian/falco" | ||
DESTINATION "${PROJECT_BINARY_DIR}/scripts/debian") | ||
|
||
file(COPY ${PROJECT_SOURCE_DIR}/scripts/rpm/falco | ||
DESTINATION ${PROJECT_BINARY_DIR}/scripts/rpm) | ||
file(COPY "${PROJECT_SOURCE_DIR}/scripts/rpm/falco" | ||
DESTINATION "${PROJECT_BINARY_DIR}/scripts/rpm") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp/third-party/jsoncpp) | ||
include_directories("${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp/third-party/jsoncpp") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be better to call this CMake command only once with a longer parameter list? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure it's a big difference, is it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest to consider another coding style issue.
|
||
include_directories("${LUAJIT_INCLUDE}") | ||
|
||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libscap) | ||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp) | ||
include_directories("${PROJECT_SOURCE_DIR}/../sysdig/userspace/libscap") | ||
include_directories("${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp") | ||
include_directories("${PROJECT_BINARY_DIR}/userspace/falco") | ||
include_directories("${CURL_INCLUDE_DIR}") | ||
include_directories("${YAMLCPP_INCLUDE_DIR}") | ||
include_directories(${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include) | ||
include_directories("${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include") | ||
|
||
add_executable(falco configuration.cpp formats.cpp fields.cpp rules.cpp logger.cpp falco.cpp) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you think about to enclose also this include parameter by double quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be wrong, but I though it wasn't necessary as LUAJIT_INCLUDE is defined in terms of LUAJIT_SRC, which is quoted:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to apply quoting rules consistently. It does not matter that the previous assignment of the mentioned variable is fine while its use for an other parameter might be a bit unsafe.