Ticket #2924: file.c_preserve_dir_attributes.diff

File file.c_preserve_dir_attributes.diff, 642 bytes (added by slackmail, 11 years ago)
  • ./src/filemanager/file.c

     
    20532053        { 
    20542054            dest_dir = d; 
    20552055            d = NULL; 
     2056            dest_dir_vpath = vfs_path_from_str (dest_dir); 
    20562057            goto dont_mkdir; 
    20572058        } 
    20582059    } 
     
    20782079    lp->dev = buf.st_dev; 
    20792080    dest_dirs = g_slist_prepend (dest_dirs, lp); 
    20802081 
     2082  dont_mkdir: 
    20812083    if (ctx->preserve_uidgid) 
    20822084    { 
    20832085        while (mc_chown (dest_dir_vpath, cbuf.st_uid, cbuf.st_gid) != 0) 
     
    20962098        } 
    20972099    } 
    20982100 
    2099   dont_mkdir: 
    21002101    /* open the source dir for reading */ 
    21012102    reading = mc_opendir (src_vpath); 
    21022103    if (reading == NULL)