/[winpt]/trunk/Src/wptFileManager.cpp
ViewVC logotype

Diff of /trunk/Src/wptFileManager.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by twoaday, Mon Mar 7 13:21:36 2005 UTC revision 14 by twoaday, Wed May 4 07:59:42 2005 UTC
# Line 1475  fm_parse_command_line (char *cmdl) Line 1475  fm_parse_command_line (char *cmdl)
1475      if( p && *p > 32 && !memistr( p, strlen( p ), "winpt.exe" )      if( p && *p > 32 && !memistr( p, strlen( p ), "winpt.exe" )
1476                       && !strstr( p, "--" ) ) {                       && !strstr( p, "--" ) ) {
1477          count++;          count++;
1478          if( *p == '"' ) { /* need to remove quotes */          if (*p == '"') { /* need to remove quotes */
1479              fn = new char[strlen( p )];              fn = new char[strlen( p )];
1480              if( !fn )              if (!fn)
1481                  BUG( NULL );                  BUG( NULL );
1482              memcpy( fn, p+1, strlen( p ) - 2 );              memcpy( fn, p+1, strlen( p ) - 2 );
1483              fn[strlen( p ) -2] = '\0';              fn[strlen( p ) -2] = '\0';
# Line 1491  fm_parse_command_line (char *cmdl) Line 1491  fm_parse_command_line (char *cmdl)
1491              log_box( _("File Manager"), MB_ERR, _("%s: no valid OpenPGP data found."), p );              log_box( _("File Manager"), MB_ERR, _("%s: no valid OpenPGP data found."), p );
1492              return count;              return count;
1493          }          }
1494            
1495          switch( *s ) {          switch( *s ) {
1496          case 'E': fm_decrypt( ctx, fn ); break;          case 'E': fm_decrypt (ctx, fn); break;
1497          case 'P': fm_import( ctx, fn ); break;          case 'P': fm_import (ctx, fn); break;
1498          case 'S':          case 'S':
1499              file_verify_use_event( );              if (s[1] == 'Y') {
1500              if( s[1] == 'I' ) {                  fm_decrypt (ctx, fn);
1501                  if( strlen( s ) == 13 && s[7] == 'D' )                  break;
1502                }
1503                file_verify_use_event ();
1504                if (s[1] == 'I') {
1505                    if (strlen (s) == 13 && s[7] == 'D')
1506                      detached = 1;                      detached = 1;
1507                  fm_verify( ctx, detached, fn );                  fm_verify( ctx, detached, fn );
1508              }              }

Legend:
Removed from v.13  
changed lines
  Added in v.14

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26