X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Foptr.c;h=2d898800df91f336c54736fd1db1d30ce5406716;hb=008af4194627f2026f9a66f38953724c0c364c81;hp=8d72cab7ee83e26ed8b4802c5b6d2f51b6964a72;hpb=e1abc9ce25132eef1239047a071c2c1d4822dd9f;p=dump.git diff --git a/dump/optr.c b/dump/optr.c index 8d72cab..2d89880 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: optr.c,v 1.36 2003/03/30 15:40:36 stelian Exp $"; + "$Id: optr.c,v 1.37 2003/04/10 07:59:05 stelian Exp $"; #endif /* not lint */ #include @@ -460,6 +460,12 @@ allocfsent(struct mntent *fs) quit("Cannot access %s\n", tabfs->mnt_fsname); if (tabbuf.st_rdev == buf.st_rdev) { free(new); + /* Copy passno and freq from /etc/fstab because + * /etc/mtab does always have them as 0 0 */ + if (!tabfs->mnt_passno) + tabfs->mnt_passno = fs->mnt_passno; + if (!tabfs->mnt_freq) + tabfs->mnt_freq = fs->mnt_freq; return NULL; } }