Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst Correct fsck_num() implementation; ret...
details: https://anonhg.NetBSD.org/src/rev/de104a4285f0
branches: trunk
changeset: 533427:de104a4285f0
user: scottr <scottr%NetBSD.org@localhost>
date: Sun Jun 30 03:57:46 2002 +0000
description:
Correct fsck_num() implementation; return the fs_passno value as defined
in fstab(5). Noticed by Frederick Bruckman.
diffstat:
distrib/utils/sysinst/disks.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (27 lines):
diff -r 0fe37ed0368a -r de104a4285f0 distrib/utils/sysinst/disks.c
--- a/distrib/utils/sysinst/disks.c Sun Jun 30 03:26:59 2002 +0000
+++ b/distrib/utils/sysinst/disks.c Sun Jun 30 03:57:46 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disks.c,v 1.43 2002/06/29 20:16:41 scottr Exp $ */
+/* $NetBSD: disks.c,v 1.44 2002/06/30 03:57:46 scottr Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -358,15 +358,11 @@
return 0;
}
+/* Return the appropriate fs_passno field, as specified by fstab(5) */
static int
fsck_num(const char *mp)
{
- static int num = 1;
-
- if (strcmp(mp, "/"))
- return 1;
-
- return (++num);
+ return (strcmp(mp, "/") == 0) ? 1 : 2;
}
Home |
Main Index |
Thread Index |
Old Index