Lines Matching refs:source_stat
221 static void restore(char *spath, struct stat source_stat, int rootlen);
817 struct stat source_stat, dest_stat;
837 if (!make_dir_tree(destination) || lstat(source, &source_stat) != 0)
840 new_mode = source_stat.st_mode & ~S_ISVTX;
845 ret = copy_inode(destination, &dest_stat, new_mode, source, &source_stat);
947 static void restore(char *spath, struct stat source_stat, int rootlen)
956 if (S_ISLNK(source_stat.st_mode) || (source_stat.st_mode & S_ISVTX))
957 copy_inode(dpath, &dest_stat,(source_stat.st_mode & ~S_ISVTX) , spath, &source_stat);
959 if (S_ISDIR(source_stat.st_mode))
966 const char *sourcepath, const struct stat *source_stat)
972 <source_stat> The source stat(2) information.
982 if ((source_stat->st_mode & S_IFMT) ==(dest_stat->st_mode & S_IFMT)) {
984 if (S_ISLNK(source_stat->st_mode)) {
998 chown(destpath, source_stat->st_uid, source_stat->st_gid);
1003 switch (source_stat->st_mode & S_IFMT) {
1031 if (mknod(destpath, new_mode, source_stat->st_rdev) != 0)
1038 if (chown(destpath, source_stat->st_uid, source_stat->st_gid) == 0)