This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16382] New: getfsspec rewinds the fstab stream
- From: "aoliva at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 31 Dec 2013 04:28:04 +0000
- Subject: [Bug libc/16382] New: getfsspec rewinds the fstab stream
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16382
Bug ID: 16382
Summary: getfsspec rewinds the fstab stream
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: aoliva at sourceware dot org
CC: drepper.fsp at gmail dot com
The docs state it returns the *next* entry pertaining to the given argument,
but the code calls fstab_init(1), which rewinds spec. The manual discusses how
inappropriate it is to call the function twice with the same argument, but
nowadays, with bind mounts and multiple btrfs mounts of the same device, the
argument there no longer applies, and the implementation is thus IMHO
inappropriate. Anyway, even if it is appropriate, the wording in the manual
(ânext entryâ) contradicts the implementation, so at least one needs fixing.
--
You are receiving this mail because:
You are on the CC list for the bug.