Changeset 4134


Ignore:
Timestamp:
2003-04-14T08:47:33+12:00 (21 years ago)
Author:
mdewsnip
Message:

Changed main.cfg to be rewritten as world-writeable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/translator.pl

    r4129 r4134  
    211211    }
    212212
    213     # Add the new language code into the main.cfg file
    214     open MAIN_CFG_OUT, ">$maincfgfile.new" or die "Error: Could not write $maincfgfile.new\n";
     213    # Add the new language code into the main.cfg file, and make sure it is world writeable
     214    my $currentmask = umask;
     215    umask(0000);
     216    if (! open(MAIN_CFG_OUT,">$maincfgfile.new")) {
     217    umask($currentmask);
     218    die "Error: Could not create $maincfgfile.new: $!\n";
     219    }
     220    umask($currentmask);
     221
    215222    open MAIN_CFG_IN, "<$maincfgfile" or die "Error: Could not open $maincfgfile.\n";
    216223    my $inmacros = "false";
Note: See TracChangeset for help on using the changeset viewer.