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/22679] New: getcwd(3) can succeed without returning an absolute path


https://sourceware.org/bugzilla/show_bug.cgi?id=22679

            Bug ID: 22679
           Summary: getcwd(3) can succeed without returning an absolute
                    path
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: ldv at sourceware dot org
                CC: drepper.fsp at gmail dot com
            Blocks: 18203
  Target Milestone: ---

As noted in https://sourceware.org/bugzilla/show_bug.cgi?id=18203,
getcwd(3) on linux can succeed without returning an absolute path
because the underlying getcwd syscall, starting with linux commit
v2.6.36-rc1~96^2~2, may succeed without returning an absolute path.

This is a conformance issue because "The getcwd() function shall place
an absolute pathname of the current working directory in the array
pointed to by buf, and return buf".


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=18203
[Bug 18203] realpath() does not handle unreachable paths correctly
-- 
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]