1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix alignement error making pkg repo segfaul on i386

Reported by:	gjb, Ivan Klymenko <fidaj@ukr.net> (via ports@)
Tested by:	gjb
Obtained from:	pkgng git repository
This commit is contained in:
Baptiste Daroussin 2012-07-04 09:59:23 +00:00
parent 6483bd6675
commit 0c571441dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300477
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= pkg
DISTVERSION= 1.0-beta17
PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= LOCAL/portmgr \
http://files.etoilebsd.net/pkg/

View File

@ -0,0 +1,14 @@
diff --git libpkg/pkg_repo.c libpkg/pkg_repo.c
index d2ef999..d628850 100644
--- libpkg/pkg_repo.c
+++ libpkg/pkg_repo.c
@@ -605,8 +605,7 @@ pkg_create_repo(char *path, bool force, void (progress)(struct pkg *pkg, void *d
while ((ent = fts_read(fts)) != NULL) {
const char *name, *version, *origin, *comment, *desc;
const char *arch, *maintainer, *www, *prefix;
- int64_t flatsize;
- lic_t licenselogic;
+ int64_t flatsize, licenselogic;
/* skip everything that is not a file */
if (ent->fts_info != FTS_F)