Martin Natano <[email protected]> writes:
> FSTAB has been deprecated in favor of _PATH_FSTAB in 4.4BSD. It's time
> to let go of it. Below the diff I committed to Bitrig.
Make sense and looks innocuous to me, I'll commit it tomorrow unless
I hear objections.
Thanks,
> cheers,
> natano
>
>
> Replace deprecated FSTAB with _PATH_FSTAB; no binary change.
>
> ok oga@
>
> diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
> index a74e7c9..1de8c09 100644
> --- a/sbin/quotacheck/quotacheck.c
> +++ b/sbin/quotacheck/quotacheck.c
> @@ -186,7 +186,7 @@ main(int argc, char *argv[])
> if (flags&CHECK_PREEN)
> exit(checkfstab(flags, maxrun, needchk, chkquota));
> if (setfsent() == 0)
> - err(1, "%s: can't open", FSTAB);
> + err(1, "%s: can't open", _PATH_FSTAB);
> while ((fs = getfsent()) != NULL) {
> if (((argnum = oneof_realpath(fs->fs_file, argv, argc)) >= 0 ||
> (argnum = oneof_specname(fs->fs_spec, argv, argc)) >= 0) &&
> @@ -201,7 +201,7 @@ main(int argc, char *argv[])
> for (i = 0; i < argc; i++)
> if ((done & (1 << i)) == 0)
> fprintf(stderr, "%s not found in %s\n",
> - argv[i], FSTAB);
> + argv[i], _PATH_FSTAB);
> exit(errs);
> }
>
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE