add .cvsignore
Try to preserve ownership and permissions of the original history file.
include <stdio.h> for snprintf()