X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Foptr.c;fp=dump%2Foptr.c;h=2d898800df91f336c54736fd1db1d30ce5406716;hp=8d72cab7ee83e26ed8b4802c5b6d2f51b6964a72;hb=8c95cc301d14462e5b6c1b4e00dbccddad82ec88;hpb=61e9d4ff6082c1c460bac40ff15c62839278dd48 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; } }