Do not pass random bits as mount arguments.

This commit is contained in:
Poul-Henning Kamp 2004-12-12 11:04:52 +00:00
parent 2221dbebce
commit d90b3ef3c9

View File

@ -304,6 +304,7 @@ checkfilesys(char *filesys)
if (bkgrdflag) {
snprintf(snapname, sizeof snapname,
"%s/.snap/fsck_snapshot", mntp->f_mntonname);
memset(&args, 0, sizeof args);
args.fspec = snapname;
while (mount("ffs", mntp->f_mntonname,
mntp->f_flags | MNT_UPDATE | MNT_SNAPSHOT,