]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_entry_perms.3: clarify that you don't need to strdup() [gu]name (#2239)
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 5 Jul 2024 21:36:31 +0000 (23:36 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2024 21:36:31 +0000 (14:36 -0700)
commit621411ea164f0b76d850d1ecb3b9a524d77cb9a0
tree60324678506e0da91fd3b629eae88864557dd64e
parent2e73ea3a7db1c3c743c28a0d2dd0456a43e96b96
archive_entry_perms.3: clarify that you don't need to strdup() [gu]name (#2239)

Currently updating archivemount which does
```c
pwd = getpwuid(st.st_uid);
if(pwd)
archive_entry_set_uname(node->entry, strdup(pwd->pw_name));
grp = getgrgid(st.st_gid);
if(grp)
archive_entry_set_gname(node->entry, strdup(grp->gr_name));
```
and I'm assuming the strdups are actually leaks? The manual is silent on
this.
libarchive/archive_entry_perms.3