Home | History | Annotate | Download | only in installd

Lines Matching refs:srcpath

797 int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
804 int srcend = strlen(srcpath);
807 if (lstat(srcpath, statbuf) < 0) {
808 ALOGW("Unable to stat %s: %s\n", srcpath, strerror(errno));
815 ALOGV("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid);
816 if (rename(srcpath, dstpath) >= 0) {
824 srcpath, dstpath, strerror(errno));
830 d = opendir(srcpath);
832 ALOGW("Unable to opendir %s: %s\n", srcpath, strerror(errno));
847 ALOGW("Source path too long; skipping: %s/%s\n", srcpath, name);
856 srcpath[srcend] = dstpath[dstend] = '/';
857 strcpy(srcpath+srcend+1, name);
860 if (movefileordir(srcpath, dstpath, dstbasepos, dstuid, dstgid, statbuf) != 0) {
864 // Note: we will be leaving empty directories behind in srcpath,
868 srcpath[srcend] = dstpath[dstend] = 0;
886 char srcpath[PKG_PATH_MAX];
940 if (!create_move_path(srcpath, srcpkg, buf+bufp, 0) &&
942 movefileordir(srcpath, dstpath,
970 if (!create_pkg_path(srcpath, srcpkg, PKG_DIR_POSTFIX, 0)) {
971 if (lstat(srcpath, &s) < 0) {