~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to src/fileopctx.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* File operation contexts for the Midnight Commander
2
2
 
3
 
   Copyright (C) 1998 The Free Software Foundation
 
3
   Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2007
 
4
   Free Software Foundation, Inc.
4
5
 
5
6
   Authors: Federico Mena <federico@nuclecu.unam.mx>
6
7
            Miguel de Icaza <miguel@nuclecu.unam.mx>
21
22
 */
22
23
 
23
24
#include <config.h>
 
25
 
24
26
#include <unistd.h>
25
27
 
26
28
#include "global.h"
46
48
    ctx->progress_bytes = 0.0;
47
49
    ctx->op_preserve = TRUE;
48
50
    ctx->do_reget = TRUE;
49
 
    ctx->stat_func = (mc_stat_fn) mc_lstat;
 
51
    ctx->stat_func = mc_lstat;
50
52
    ctx->preserve = TRUE;
51
53
    ctx->preserve_uidgid = (geteuid () == 0) ? TRUE : FALSE;
52
54
    ctx->umask_kill = 0777777;