~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/libecryptfs/cmd_ln_parser.c

  • Committer: Michal Hlavinka
  • Date: 2009-02-17 15:16:28 UTC
  • mto: This revision was merged to the branch mainline in revision 317.
  • Revision ID: mhlavink@redhat.com-20090217151628-0dsz0zzl8m8tdh73
improve interactive mode of mount.ecryptfs

- make interactive mode working
- echo when entering path to key file or fd
- fix mount option parsing
- fix error for empty passphrase
- fix (some) error codes
- don't error out when user cancels mount

Signed-off-by: Michal Hlavinka <mhlavink@redhat.com> 

-------------- This and the following will be ignored --------------

modified:
  src/key_mod/ecryptfs_key_mod_openssl.c
  src/key_mod/ecryptfs_key_mod_passphrase.c
  src/libecryptfs/cmd_ln_parser.c
  src/libecryptfs/decision_graph.c
  src/libecryptfs/module_mgr.c
  src/utils/mount.ecryptfs.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
{
338
338
        struct ecryptfs_name_val_pair *current = head;
339
339
        char tok_str[MAX_TOK_LEN];
 
340
 
 
341
        if (!buf)
 
342
                return 0;
 
343
 
340
344
        int buf_len = strlen(buf);
341
345
        int i, j = 0;
342
346
        int rc = 0;