Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
cwe_checker
Commits
945cbf90
Commit
945cbf90
authored
Oct 20, 2020
by
Enkelmann
Committed by
Enkelmann
Nov 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fallback tmp-folder location
parent
67440d78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
main.rs
caller/src/main.rs
+5
-3
No files found.
caller/src/main.rs
View file @
945cbf90
...
@@ -179,9 +179,11 @@ fn get_project_from_ghidra(file_path: &Path) -> Project {
...
@@ -179,9 +179,11 @@ fn get_project_from_ghidra(file_path: &Path) -> Project {
// Find the correct paths for temporary files.
// Find the correct paths for temporary files.
let
project_dirs
=
directories
::
ProjectDirs
::
from
(
""
,
""
,
"cwe_checker"
)
let
project_dirs
=
directories
::
ProjectDirs
::
from
(
""
,
""
,
"cwe_checker"
)
.expect
(
"Could not determine path for temporary files"
);
.expect
(
"Could not determine path for temporary files"
);
let
tmp_folder
=
project_dirs
let
tmp_folder
=
if
let
Some
(
folder
)
=
project_dirs
.runtime_dir
()
{
.runtime_dir
()
folder
.expect
(
"Could not determine path for temporary files"
);
}
else
{
Path
::
new
(
"/tmp/cwe_checker"
)
};
if
!
tmp_folder
.exists
()
{
if
!
tmp_folder
.exists
()
{
std
::
fs
::
create_dir
(
tmp_folder
)
.expect
(
"Unable to create temporary folder"
);
std
::
fs
::
create_dir
(
tmp_folder
)
.expect
(
"Unable to create temporary folder"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment