This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16382] New: getfsspec rewinds the fstab stream


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]