git: etc/periodic: fix off-by-one error in 220.snapshot-hammer2

Daniel Fojt deef at crater.dragonflybsd.org
Tue Jun 16 10:18:08 PDT 2020


commit 81002e79937bb55687c3e60fc4f07b4b0c83da4a
Author: Daniel Fojt <df at neosystem.org>
Date:   Tue Jun 16 19:05:40 2020 +0200

    etc/periodic: fix off-by-one error in 220.snapshot-hammer2
    
    Increase $_keep before passing it to tail(1) as the output from
    tail -n+N starts at N-th line of its input which is the last
    snapshot to be kept actually.

Summary of changes:
 etc/periodic/daily/220.snapshot-hammer2 | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/81002e79937bb55687c3e60fc4f07b4b0c83da4a


-- 
DragonFly BSD source repository



More information about the Commits mailing list