Lines Matching refs:src_mode
1280 mode_t src_mode = src_sb->st_mode; in copy_reg() local
1369 mode_t cloned_mode = src_mode & cloned_mode_bits; in copy_reg()
1371 = (x->preserve_mode ? src_mode & CHMOD_MODE_BITS in copy_reg()
1652 src_mode &= ~ (S_ISUID | S_ISGID | S_ISVTX); in copy_reg()
1671 if (copy_acl (src_name, source_desc, dst_name, dest_desc, src_mode) != 0 in copy_reg()
2207 mode_t src_mode IF_LINT ( = 0); in copy_internal()
2248 src_mode = src_sb.st_mode; in copy_internal()
2250 if (S_ISDIR (src_mode) && !x->recursive) in copy_internal()
2273 if ( ! S_ISDIR (src_mode) in copy_internal()
2313 = ((! S_ISREG (src_mode) in copy_internal()
2315 || S_ISDIR (src_mode) || S_ISLNK (src_mode))) in copy_internal()
2357 if (x->update && !S_ISDIR (src_mode)) in copy_internal()
2426 if (! S_ISDIR (src_mode) in copy_internal()
2454 if (S_ISDIR (src_mode)) in copy_internal()
2488 if (!S_ISDIR (src_mode)) in copy_internal()
2627 if (x->verbose && !x->move_mode && !S_ISDIR (src_mode)) in copy_internal()
2662 else if (x->recursive && S_ISDIR (src_mode)) in copy_internal()
2693 if (S_ISDIR (src_mode)) in copy_internal()
2874 S_ISDIR (src_mode) ? AT_REMOVEDIR : 0) in copy_internal()
2885 if (x->verbose && !S_ISDIR (src_mode)) in copy_internal()
2897 dst_mode_bits = (x->set_mode ? x->mode : src_mode) & CHMOD_MODE_BITS; in copy_internal()
2901 : S_ISDIR (src_mode) ? S_IWGRP | S_IWOTH in copy_internal()
2910 if (! set_process_security_ctx (src_name, dst_name, src_mode, new_dst, x)) in copy_internal()
2913 if (S_ISDIR (src_mode)) in copy_internal()
3081 && !(! CAN_HARDLINK_SYMLINKS && S_ISLNK (src_mode) in copy_internal()
3091 else if (S_ISREG (src_mode) in copy_internal()
3092 || (x->copy_as_regular && !S_ISLNK (src_mode))) in copy_internal()
3109 else if (S_ISFIFO (src_mode)) in copy_internal()
3115 mode_t mode = src_mode & ~omitted_permissions; in copy_internal()
3123 else if (S_ISBLK (src_mode) || S_ISCHR (src_mode) || S_ISSOCK (src_mode)) in copy_internal()
3125 mode_t mode = src_mode & ~omitted_permissions; in copy_internal()
3133 else if (S_ISLNK (src_mode)) in copy_internal()
3205 if (!new_dst && !x->copy_as_regular && !S_ISDIR (src_mode) in copy_internal()
3226 if (x->hard_link && ! S_ISDIR (src_mode) in copy_internal()
3227 && !(! CAN_HARDLINK_SYMLINKS && S_ISLNK (src_mode) in copy_internal()
3272 src_mode &= ~ (S_ISUID | S_ISGID | S_ISVTX); in copy_internal()
3290 if (copy_acl (src_name, -1, dst_name, -1, src_mode) != 0 in copy_internal()
3301 int default_permissions = S_ISDIR (src_mode) || S_ISSOCK (src_mode) in copy_internal()