History log of /pciutils/lib/names-cache.c (Results 1 – 10 of 10)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v3.14.0, v3.13.0, v3.12.0, v3.11.1, v3.11.0
# f022f467 18-Feb-2024 Martin Mares <[email protected]>

Location of name cache now follows XDG base dir specification

We also create parent directories of net.cache_name automatically.

Tilde expansion is performed internally and it does not change
user-

Location of name cache now follows XDG base dir specification

We also create parent directories of net.cache_name automatically.

Tilde expansion is performed internally and it does not change
user-specified net.cache_name any longer.

show more ...


# 61829219 18-Jun-2023 Martin Mares <[email protected]>

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL alone.

Let us update all copyright comments to explicitly say "GPL v2+"
and also include the machine readable SPDX license identifier.

show more ...


Revision tags: v3.10.0, v3.9.0, v3.8.0, v3.7.0, v3.6.4, v3.6.3, v3.6.2, v3.6.1, v3.6.0, v3.5.6, v3.5.5, v3.5.4, v3.5.3, v3.5.2, v3.5.1, v3.5.0, v3.4.1, v3.4.0, v3.3.1
# 7220de95 22-Jan-2015 Martin Mares <[email protected]>

Fixed memory allocation bug in name cache path code


# cd10d1d1 12-Dec-2014 Martin Mares <[email protected]>

Fix small memory leak in names-cache

Signed-off-by: Tomáš Chvátal <[email protected]>
---
lib/names-cache.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/names-cache.c b/

Fix small memory leak in names-cache

Signed-off-by: Tomáš Chvátal <[email protected]>
---
lib/names-cache.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/names-cache.c b/lib/names-cache.c
index 90a6454..c97ea30 100644
--- a/lib/names-cache.c
+++ b/lib/names-cache.c
@@ -39,7 +39,8 @@ static char *get_cache_name(struct pci_access *a)
buf = pci_malloc(a, strlen(pw->pw_dir) + strlen(name+1) + 1);
sprintf(buf, "%s%s", pw->pw_dir, name+1);
pci_set_param_internal(a, "net.cache_name", buf, 0);
- return buf;
+ pci_mfree(buf);
+ return pci_get_param(a, "net.cache_name");
}

int
--
2.1.3

show more ...


Revision tags: v3.3.0, v3.2.1, v3.2.0, v3.1.10, v3.1.9, v3.1.8, v3.1.7, v3.1.6, v3.1.5
# fda7c18d 16-Sep-2009 Martin Mares <[email protected]>

Do not include <pwd.h> et al. unless PCI_USE_DNS

Solves compilation problems on Windows.


Revision tags: v3.1.4, v3.1.3, v3.1.2, v3.1.1, v3.1.0, v3.1-alpha3, v3.1-alpha2, v3.1-alpha1, v3.0.3, v3.0.2, v3.0.1, v3.0.0
# 159b4709 12-Feb-2008 Martin Mares <[email protected]>

Renamed `net.cache_path' to `net.cache_name', it's more logical.


# 98ccf6d6 12-Feb-2008 Martin Mares <[email protected]>

Settings of the resolving and caching mechanism are now passed as parameters.


# 61bc0b58 11-Feb-2008 Martin Mares <[email protected]>

Writes to the cache file are no longer racy.


# 94d1b5e0 11-Feb-2008 Martin Mares <[email protected]>

Use DNS on all architectures except AIX.


# 752d4d9a 11-Feb-2008 Martin Mares <[email protected]>

Split handling of the ID list to several files.