summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-06-26 11:50:34 -0400
committerAllan McRae <allan@archlinux.org>2014-08-03 18:46:32 +1000
commite8de265f8039165dc32ffb78f6a6a5eb0c1514ad (patch)
tree83363a49ca0e14815e2f866d8682a3cb905a4cfe /lib/libalpm/add.c
parent0e2db97a42df30d2731e4842b245191a68817d78 (diff)
downloadpacman-e8de265f8039165dc32ffb78f6a6a5eb0c1514ad.tar.xz
move _alpm_lstat into util-common
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 4f557a47..bbf2a511 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -209,7 +209,7 @@ static int extract_single_file(alpm_handle_t *handle, struct archive *archive,
* F/N | 3 | 4
* D | 5 | 6
*
- * 1,2- extract, no magic necessary. lstat (_alpm_lstat) will fail here.
+ * 1,2- extract, no magic necessary. lstat (llstat) will fail here.
* 3,4- conflict checks should have caught this. either overwrite
* or backup the file.
* 5- file replacing directory- don't allow it.
@@ -217,7 +217,7 @@ static int extract_single_file(alpm_handle_t *handle, struct archive *archive,
*/
struct stat lsbuf;
- if(_alpm_lstat(filename, &lsbuf) != 0) {
+ if(llstat(filename, &lsbuf) != 0) {
/* cases 1,2: file doesn't exist, skip all backup checks */
} else {
if(S_ISDIR(lsbuf.st_mode)) {