Bug 56169 - _PATH_MNTTAB should be "/etc/mtab"
_PATH_MNTTAB should be "/etc/mtab"
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-11-13 11:21 EST by Zing
Modified: 2016-11-24 09:48 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-21 22:23:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
define _PATH_MNTTAB to "/etc/mtab" (401 bytes, patch)
2001-11-13 11:30 EST, Zing
no flags Details | Diff

  None (edit)
Description Zing 2001-11-13 11:21:45 EST
Description of Problem:
Should not _PATH_MNTTAB in paths.h be "/etc/mtab"?  It is currently set 
to "/etc/fstab".

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. look in /usr/include/paths.h

Actual Results:
_PATH_MNTTAB is #defined as "/etc/fstab"

Expected Results:
_PATH_MNTTAB #defined as "/etc/mtab"

Additional Information:
the libc docs in info also seem to say that _PATH_MNTTAB should be defined 
in 'mntent.h' but that doesn't seem to be the case.

<info snippet>
   The filenames given above should never be used directly.  The
portable way to handle these file is to use the macros `_PATH_FSTAB',
defined in `fstab.h' and `_PATH_MNTTAB', defined in `mntent.h',
respectively.  There are also two alternate macro names `FSTAB' and
`_PATH_MOUNTED' defined but both names are deprecated and kept only for
backward compatibility.  The two former names should always be used.
</info snippet>
Comment 1 Zing 2001-11-13 11:30:15 EST
Created attachment 37382 [details]
define _PATH_MNTTAB to "/etc/mtab"
Comment 2 Ulrich Drepper 2003-04-21 22:23:24 EDT
No.  What you want is _PATH_MOUNTED.  There is no arguing about this, what we
use are the tradional names and they have to stay.  Even if some people find
them counter-intuitive at times.

Note You need to log in before you can comment on or make changes to this bug.