Home | History | Annotate | Download | only in installd

Lines Matching full:dstpath

699 int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
707 int dstend = strlen(dstpath);
715 mkinnerdirs(dstpath, dstbasepos, S_IRWXU|S_IRWXG|S_IXOTH,
717 LOGI("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid);
718 if (rename(srcpath, dstpath) >= 0) {
719 if (chown(dstpath, dstuid, dstgid) < 0) {
720 LOGE("cannot chown %s: %s\n", dstpath, strerror(errno));
721 unlink(dstpath);
726 srcpath, dstpath, strerror(errno));
754 LOGW("Destination path too long; skipping: %s/%s\n", dstpath, name);
758 srcpath[srcend] = dstpath[dstend] = '/';
760 strcpy(dstpath+dstend+1, name);
762 if (movefileordir(srcpath, dstpath, dstbasepos, dstuid, dstgid, statbuf) != 0) {
770 srcpath[srcend] = dstpath[dstend] = 0;
789 char dstpath[PKG_PATH_MAX];
843 !create_move_path(dstpath, PKG_DIR_PREFIX, dstpkg, buf+bufp)) {
844 movefileordir(srcpath, dstpath,
845 strlen(dstpath)-strlen(buf+bufp),
884 if (!create_pkg_path(dstpath, PKG_DIR_PREFIX, dstpkg,
886 if (lstat(dstpath, &s) == 0) {