Home | History | Annotate | Download | only in installd

Lines Matching full:srcpath

821 int movefileordir(char* srcpath, char* dstpath, int dstbasepos,
828 int srcend = strlen(srcpath);
831 if (lstat(srcpath, statbuf) < 0) {
832 ALOGW("Unable to stat %s: %s\n", srcpath, strerror(errno));
839 ALOGV("Renaming %s to %s (uid %d)\n", srcpath, dstpath, dstuid);
840 if (rename(srcpath, dstpath) >= 0) {
848 srcpath, dstpath, strerror(errno));
854 d = opendir(srcpath);
856 ALOGW("Unable to opendir %s: %s\n", srcpath, strerror(errno));
871 ALOGW("Source path too long; skipping: %s/%s\n", srcpath, name);
880 srcpath[srcend] = dstpath[dstend] = '/';
881 strcpy(srcpath+srcend+1, name);
884 if (movefileordir(srcpath, dstpath, dstbasepos, dstuid, dstgid, statbuf) != 0) {
888 // Note: we will be leaving empty directories behind in srcpath,
892 srcpath[srcend] = dstpath[dstend] = 0;
910 char srcpath[PKG_PATH_MAX];
964 if (!create_move_path(srcpath, srcpkg, buf+bufp, 0) &&
966 movefileordir(srcpath, dstpath,
994 if (!create_pkg_path(srcpath, srcpkg, PKG_DIR_POSTFIX, 0)) {
995 if (lstat(srcpath, &s) < 0) {