~ubuntu-branches/ubuntu/dapper/file-roller/dapper-updates

« back to all changes in this revision

Viewing changes to src/fr-command-rar.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-13 00:19:53 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213001953-0klipgnhk6vikhrt
Tags: 2.13.2-0ubuntu1
* New upstream version:
  - Fixed bug #323713: "Save as" should default to current archive filename
    (Ubuntu: #20132)
  - Fixed bug #315069: file-roller: drag 'n drop doesn't work for more
    than 1 file.
  - Fixed bug #323534: Passwords improperly escaped for zip files
  - Do not open a progress dialog when dragging files, use a progressbar
    in the statusbar instead.
  - Fixed bug #316364: Nautilus dependency should be optional
  - Fixed bug #311821: ascending and descending indicators are opposite
    from expected.
  - Fixed bug #317423: Conflicting mnemonic in "Extract" dialog.
  - Fixed bug #323068: file-roller fails in chosing extract-to directory
  - Fixed bug #322197: Improve Naming Filename when create new Archive file
  - Fixed bug #316564: needs unzip AND zip
    (Ubuntu: #15595)
  - Simplified the add dialog populating the file type combobox with the
    extensions instead of the descriptions.
  - Set progress dialog display delay to 1 second.
  - More HIG compliant progress dialog.
  - Use a single command execution to add many files and folders to an
    archive to speed up the operation.
  - Allow to stop creation of a new archive.
  - Correctly associate fr to 7zip files.
* debian/patches/03_lp-autoconf.patch:
  - updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include "file-data.h"
32
32
#include "file-utils.h"
 
33
#include "glib-utils.h"
33
34
#include "fr-command.h"
34
35
#include "fr-command-rar.h"
35
36
 
150
151
                    || (fields[5][0] == 'd')) {
151
152
                        file_data_free (fdata);
152
153
                } else {
153
 
                        fdata->size = atoll (fields[0]);
 
154
                        fdata->size = g_ascii_strtoull (fields[0], NULL, 10);
154
155
                        fdata->modified = mktime_from_string (fields[3], fields[4]); 
155
156
                        comm->file_list = g_list_prepend (comm->file_list, fdata);
156
157
                }
171
172
        if (password != NULL && password[0] != '\0') {
172
173
                char *arg, *e_password;
173
174
                
174
 
                e_password = escape_str (password, "\"");
 
175
                e_password = escape_str (password, "\"*?[]'`()$!;");
175
176
                g_assert (e_password != NULL);  /* since password is non-NULL */
176
177
                
177
178
                arg = g_strconcat ("-p\"", e_password, "\"", NULL);
392
393
static void 
393
394
fr_command_rar_init (FRCommand *comm)
394
395
{
 
396
        comm->file_type = FR_FILE_TYPE_RAR;
 
397
 
395
398
        comm->propAddCanUpdate             = TRUE; 
396
399
        comm->propAddCanReplace            = TRUE; 
397
400
        comm->propExtractCanAvoidOverwrite = TRUE;