|
dbb6a232
|
2021-03-18T06:56:55
|
|
path: don't use PATH_MAX, use PKGCONF_ITEM_SIZE * 4 for realpath buffer
|
|
13a5d9a5
|
2021-01-08T10:56:41
|
|
libpkgconf: path: supply buffer to realpath
To avoid a crash on some platforms (like Darwin 9) provide a buffer to
realpath(3).
Darwin 9 (last PPC target) documents realpath needs to be given a buffer
to the resolved_path argument large enough to hold PATH_MAX bytes.
With NULL argument it crashes. Solaris makes no mention of
resolved_path to be allowed NULL, yet recent versions accept it and
malloc(3) accordingly.
Because the documentation explicitly mentions PATH_MAX being the limit
to what realpath(3) would write in resolved_path, switching to a static
buffer here doesn't limit resolution compared to dynamically allocating
a buffer by realpath(3).
While this change requires a bit more space on the stack, it avoids a
malloc/free sequence, and allows successful operation on (older)
platforms that lack support for dynamically allocating a return buffer
in realpath(3).
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
2a8bebf2
|
2020-06-11T18:00:56
|
|
libpkgconf: path: rewrite DOS paths in non-cygwin case too
|
|
7e0b0fad
|
2019-07-11T03:38:58
|
|
libpkgconf: path: fix memory leak when deduping paths (closes #39)
|
|
db9c1e96
|
2019-06-07T19:19:28
|
|
fix the order of header includes
config.h should be included before stdinc.h, otherwise large file
support is not enabled.
Downstream bug: https://bugs.gentoo.org/687548
|
|
3afd14c4
|
2019-03-23T22:27:05
|
|
libpkgconf: path: use realpath(3) to deduplicate the search path
closes #24
|
|
43e8c7b4
|
2018-05-09T16:35:21
|
|
libpkgconf: path: add path list copying function
|
|
4589274c
|
2017-10-16T12:56:19
|
|
libpkgconf: start to remove PKGCONF_BUFSIZE allocations from the stack. (closes #149)
Patch by Karen Arutyunov.
|
|
36551cca
|
2017-10-16T11:30:22
|
|
libpkgconf: path: relocate the path before doing dedup checks (closes #151)
|
|
3bc2e21d
|
2017-10-16T11:25:52
|
|
libpkgconf: path: ensure entire buffer is zeroed before calling realpath() on it (closes #150)
|
|
e9fd43ca
|
2017-09-17T23:38:25
|
|
libpkgconf: clean up header includes (closes #137)
|
|
a6d6b88d
|
2017-09-08T18:27:04
|
|
libpkgconf: path: fix logic error in path relocation case when matching against a list (closes #129)
|
|
4d7b4d7c
|
2017-06-04T19:19:55
|
|
Minimal tweaks to compile with Visual C 2015
|
|
9b255d46
|
2017-01-26T15:27:48
|
|
If PKG_CONFIG_PATH element is a sym link, use the link destination instead of the link for inode caching checks.
See issue 112 & issue 110 (https://github.com/pkgconf/pkgconf/issues)
|
|
76b8e0a2
|
2017-01-24T23:30:58
|
|
Normalize the path to remove duplicate / separators rather than possibly altering the path with realpath(3). Leave sym links as is in path components. This is also cheaper than realpath(3), and works on platforms that don't have realpath(3).
Note: if this is accepted, the check for realpath in configure.ac
can be removed, and some docs that mention realpath will be adjusted.
|
|
b06bbe75
|
2017-01-23T23:17:26
|
|
libpkgconf: path: only enable cygwin path relocation backend for msys (ref #72)
|
|
1ee3c12f
|
2017-01-19T10:43:23
|
|
libpkgconf: path: use pkgconf_path_relocate() when matching paths
|
|
fa927fd3
|
2017-01-19T10:36:07
|
|
libpkgconf: path: pkgconf_path_relocate(): implement realpath backend
|
|
03158322
|
2017-01-19T10:31:40
|
|
doc: document pkgconf_path_relocate()
|
|
147fd807
|
2017-01-13T20:12:38
|
|
path: relocate system libdir/includedir if appropriate
|
|
87a5a1f0
|
2017-01-13T20:08:22
|
|
path: when stubbing pkgconf_path_relocate(), suppress unused variables warnings
|
|
1369f558
|
2017-01-13T20:04:38
|
|
path: add new pkgconf_path_relocate() API which is a stub when path
relocation is not needed
|
|
3b3f1dc7
|
2017-01-07T17:57:37
|
|
Fix gcc warnings
|
|
2e855972
|
2017-01-07T17:52:44
|
|
inode cache: ensure we never use an unitilized struct stat
|
|
9c426b6f
|
2016-12-31T13:11:08
|
|
do not filter non-existent directories if filter is off
|
|
92f566ff
|
2016-12-30T11:39:45
|
|
libpkgconf: path: check both device node and inode for dedup. pointed out by @plicease
|
|
23050315
|
2016-12-30T11:13:04
|
|
libpkgconf: path: make the duplicate filtering opt-in. some path lists should not be deduped (compiler path lists, for example)
|
|
bad0da0c
|
2016-12-30T11:01:15
|
|
libpkgconf: path: filter out duplicate path entries by inode if possible (closes #102)
|
|
aa041b41
|
2016-12-30T10:44:01
|
|
libpkgconf: path: add naive path list filtering function
|
|
f6b074f2
|
2016-12-21T19:50:05
|
|
libpkgconf: path: make pkgconf_path_match_list() take a const list argument
|
|
4cc0d017
|
2016-12-10T20:14:42
|
|
libpkgconf: document path module
|
|
e7f48465
|
2016-12-02T00:04:43
|
|
libpkgconf: path: add cleanup functions
|
|
4bb46e20
|
2016-11-30T22:32:17
|
|
libpkgconf: add path matching and environment building functions
|
|
f4da1082
|
2016-11-30T22:15:13
|
|
libpkgconf: refactor some path operations
|