diff options
author | Guillem Jover <guillem@debian.org> | 2014-10-01 05:00:46 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-06 02:08:05 +0200 |
commit | bc684d1e438855f3232f6bc73209e74e7f2589a7 (patch) | |
tree | 8390093bf44563f5a861ea9ccc86a70c0bd59b2c /lib | |
parent | 67e532374a9562da5d94140b8a28a217d0372706 (diff) | |
download | dpkg-bc684d1e438855f3232f6bc73209e74e7f2589a7.tar.gz |
libdpkg: Make the uname and gname file_stat members non-const
We need to allocate and free them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dpkg/file.h b/lib/dpkg/file.h index 7025cd5c6..a1dd270ec 100644 --- a/lib/dpkg/file.h +++ b/lib/dpkg/file.h @@ -42,8 +42,8 @@ struct file_stat { /* Used by dpkg-statoverride when parsing the database to preserve the * user and group names in case the system does not know about them. */ - const char *uname; - const char *gname; + char *uname; + char *gname; }; void file_copy_perms(const char *src, const char *dst); |