summaryrefslogtreecommitdiff
path: root/lib/cpio.c
diff options
context:
space:
mode:
authormarc <devnull@localhost>1997-10-13 16:39:27 +0000
committermarc <devnull@localhost>1997-10-13 16:39:27 +0000
commit91995566f1e73986919ce0fdcc808b07858b01f9 (patch)
treee31cd0d0bf35c0082c1fa4fa94c019673dfa4e31 /lib/cpio.c
parent00bec5227c2bf471e8e908357fe46b761849b89b (diff)
downloadlibrpm-tizen-91995566f1e73986919ce0fdcc808b07858b01f9.tar.gz
librpm-tizen-91995566f1e73986919ce0fdcc808b07858b01f9.tar.bz2
librpm-tizen-91995566f1e73986919ce0fdcc808b07858b01f9.zip
When creating archive use fsPath to find the file.
CVS patchset: 1851 CVS date: 1997/10/13 16:39:27
Diffstat (limited to 'lib/cpio.c')
-rw-r--r--lib/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpio.c b/lib/cpio.c
index af1096de1..9fb1bef34 100644
--- a/lib/cpio.c
+++ b/lib/cpio.c
@@ -693,7 +693,7 @@ static int writeFile(int fd, struct stat sb, struct cpioFileMapping * map,
if (writeData && S_ISREG(sb.st_mode)) {
/* FIXME: we should use mmap here if it's available */
- if ((datafd = open(map->archivePath, O_RDONLY)) < 0)
+ if ((datafd = open(map->fsPath, O_RDONLY)) < 0)
return CPIO_OPEN_FAILED;
size += sb.st_size;