Ticket #3577: 0002-Type-accuracy-in-file-operation-routines-leftovers.patch

File 0002-Type-accuracy-in-file-operation-routines-leftovers.patch, 1.1 KB (added by ag, 5 years ago)
  • src/filemanager/file.c

    From e0b0f140a520ba192642b8508fa272ebd01cbcaf Mon Sep 17 00:00:00 2001
    From: Andrey Gursky <andrey.gursky@e-mail.ua>
    Date: Sat, 19 Dec 2015 04:03:10 +0100
    Subject: [PATCH 2/2] Type accuracy in file operation routines (leftovers)
    
    These are leftovers of 159f5fdff12b31a815617cdbf869267ead6073bc
    ---
     src/filemanager/file.c | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/filemanager/file.c b/src/filemanager/file.c
    index 3aa84aa..10d1d00 100644
    a b copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx, 
    16481648            ctx->skip_all = TRUE; 
    16491649        if (return_status == FILE_SKIP) 
    16501650            break; 
    1651         ctx->do_append = 0; 
     1651        ctx->do_append = FALSE; 
    16521652        goto ret_fast; 
    16531653    } 
    16541654 
    copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx, 
    16881688    open_flags = O_WRONLY; 
    16891689    if (dst_exists) 
    16901690    { 
    1691         if (ctx->do_append != 0) 
     1691        if (ctx->do_append) 
    16921692            open_flags |= O_APPEND; 
    16931693        else 
    16941694            open_flags |= O_CREAT | O_TRUNC;