Ticket #119: mc-preserveattr.patch

File mc-preserveattr.patch, 516 bytes (added by slavazanko, 11 years ago)

patch from Fedora-10

  • mc-2007-06-04-22/src/file.c

    diff -up mc-2007-06-04-22/src/file.c.preserveattr mc-2007-06-04-22/src/file.c
    old new copy_file_file (FileOpContext *ctx, cons 
    800800            } 
    801801        } 
    802802 
    803         if (!appending) { 
     803        if (!appending && ctx->preserve) { 
    804804            while (mc_chmod (dst_path, (src_mode & ctx->umask_kill))) { 
    805805                temp_status = file_error ( 
    806806                        _(" Cannot chmod target file \"%s\" \n %s "), dst_path);