Ticket #2924: file.c_preserve_dir_attributes.diff
File file.c_preserve_dir_attributes.diff, 642 bytes (added by slackmail, 12 years ago) |
---|
-
./src/filemanager/file.c
2053 2053 { 2054 2054 dest_dir = d; 2055 2055 d = NULL; 2056 dest_dir_vpath = vfs_path_from_str (dest_dir); 2056 2057 goto dont_mkdir; 2057 2058 } 2058 2059 } … … 2078 2079 lp->dev = buf.st_dev; 2079 2080 dest_dirs = g_slist_prepend (dest_dirs, lp); 2080 2081 2082 dont_mkdir: 2081 2083 if (ctx->preserve_uidgid) 2082 2084 { 2083 2085 while (mc_chown (dest_dir_vpath, cbuf.st_uid, cbuf.st_gid) != 0) … … 2096 2098 } 2097 2099 } 2098 2100 2099 dont_mkdir:2100 2101 /* open the source dir for reading */ 2101 2102 reading = mc_opendir (src_vpath); 2102 2103 if (reading == NULL)