Skip to content

Commit

Permalink
Merge pull request #562 from timopollmeier/feed-sync-chmod-20.08
Browse files Browse the repository at this point in the history
Allow group access to lockfile and fix empty timestamp
  • Loading branch information
jjnicola committed Jul 31, 2020
2 parents 5b84e3d + 5d6fa24 commit 50605c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix byte ordering and wrong PROTO identifier in dump_ipv6_packet() for openvas-nasl. [#549](https://github.com/greenbone/openvas/pull/549)
- Fix size calculation which lead to alloc error in get_tcp_element() of openvas-nasl. [#546](https://github.com/greenbone/openvas/pull/546)
- Fix filter out of default 'radio' type preferences [#560](https://github.com/greenbone/openvas/pull/560)
- Allow group access to lockfile and fix empty timestamp [#562](https://github.com/greenbone/openvas/pull/562)

### Removed
- Removed "network scan" mode. This includes removal of NASL API methods "scan_phase()" and "network_targets()". Sending a "network_mode=yes" in a scanner configuration will have no effect anymore. [#493](https://github.com/greenbone/openvas/pull/493)
Expand Down
3 changes: 2 additions & 1 deletion tools/greenbone-nvt-sync.in
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ do_sync ()
log_write "Feed is already current, skipping synchronization."
else
(
chmod +660 $OPENVAS_RUN_DIR/feed-update.lock
flock -n 9
if [ $? -eq 1 ] ; then
log_warning "Another process related to the feed update is already running"
Expand All @@ -511,7 +512,7 @@ do_sync ()
date > $OPENVAS_RUN_DIR/feed-update.lock
sync_nvts
echo -n $OPENVAS_RUN_DIR/feed-update.lock
)9>$OPENVAS_RUN_DIR/feed-update.lock
)9>>$OPENVAS_RUN_DIR/feed-update.lock
fi
}

Expand Down

0 comments on commit 50605c4

Please sign in to comment.