summaryrefslogtreecommitdiff
path: root/src/audit.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-03-10 15:46:05 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-03-10 15:47:13 +0200
commitda6e455f7001def03300a398dbbc02bb03c7f4b9 (patch)
tree192d4250879cfa27645e830c9efd5507e18e51d6 /src/audit.c
parentbe8e133c0b5ba0980d0debbf26b76a0b866689e7 (diff)
downloadapk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.gz
apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.bz2
apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.tar.xz
apk-tools-da6e455f7001def03300a398dbbc02bb03c7f4b9.zip
rename file info related functions for consistency
Diffstat (limited to 'src/audit.c')
-rw-r--r--src/audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audit.c b/src/audit.c
index 35f79a6..3bc525b 100644
--- a/src/audit.c
+++ b/src/audit.c
@@ -99,7 +99,7 @@ static int audit_file(struct audit_ctx *actx,
dbf->audited = 1;
- if (apk_file_get_info(dirfd, name, APK_FI_NOFOLLOW | dbf->csum.type, &fi) != 0)
+ if (apk_fileinfo_get(dirfd, name, APK_FI_NOFOLLOW | dbf->csum.type, &fi) != 0)
return -EPERM;
if (dbf->csum.type != APK_CHECKSUM_NONE &&
@@ -175,7 +175,7 @@ static int audit_directory_tree_item(void *ctx, int dirfd, const char *name)
if (bdir.len + bent.len + 1 >= sizeof(atctx->path))
return -ENOMEM;
- if (apk_file_get_info(dirfd, name, APK_FI_NOFOLLOW, &fi) < 0)
+ if (apk_fileinfo_get(dirfd, name, APK_FI_NOFOLLOW, &fi) < 0)
return -EPERM;
memcpy(&atctx->path[atctx->pathlen], bent.ptr, bent.len);