Skip to content

Commit

Permalink
Use append mode for lockfile in greenbone-nvt-sync
Browse files Browse the repository at this point in the history
Using read mode does not work if the file does not exist.
  • Loading branch information
timopollmeier committed Jul 30, 2020
1 parent f1b6cec commit 5d6fa24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/greenbone-nvt-sync.in
Original file line number Diff line number Diff line change
Expand Up @@ -512,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 5d6fa24

Please sign in to comment.