Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bodsch/ansible-scanbd
build, install and configure `scanbd` on **my** systems
https://github.com/bodsch/ansible-scanbd
automation scandb scanning
Last synced: 16 days ago
JSON representation
build, install and configure `scanbd` on **my** systems
- Host: GitHub
- URL: https://github.com/bodsch/ansible-scanbd
- Owner: bodsch
- License: gpl-3.0
- Created: 2020-12-07T06:22:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T04:08:09.000Z (5 months ago)
- Last Synced: 2024-11-11T07:46:09.828Z (3 months ago)
- Topics: automation, scandb, scanning
- Language: Jinja
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
installs and configure `scanbd` on **my** RasPi.
## build from source
### build errors
```
scanbd.c: In function 'main':
scanbd.c:354:5: error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
strncpy(prog_path, argv[0], PATH_MAX);
```
```
config.c: In function 'cfg_do_parse':
config.c:117:5: error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
strncpy(config_file, config_file_name, PATH_MAX);
```
```
slog.c: In function 'slog_init':
slog.c:33:5: error: 'strncpy' specified bound 2048 equals destination size [-Werror=stringop-truncation]
strncpy(lpre, string, LINE_MAX);
``````
src/scanbd/scanbd.c:354:- strncpy(prog_path, argv[0], PATH_MAX);
+ strncpy(prog_path, argv[0], PATH_MAX -1);
``````
src/scanbd/config.c:117:- strncpy(config_file, config_file_name, PATH_MAX);
+ strncpy(config_file, config_file_name, PATH_MAX -1);
``````
src/scanbd/slog.c:33:- strncpy(lpre, string, LINE_MAX);
+ strncpy(lpre, string, LINE_MAX -1);
```