~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/libecryptfs/cmd_ln_parser.c

  • Committer: Dustin Kirkland
  • Date: 2009-04-23 03:07:43 UTC
  • mfrom: (376.1.12 ecryptfs)
  • Revision ID: kirkland@canonical.com-20090423030743-607khpd47cr7zi6q
Tags: 74
 388. By Michal Hlavinka  17 hours ago

    key_management.c: if key is already in keyring don't report it as error

    ecryptfs_add_passphrase_key_to_keyring gets return code 1 if key,
    it is trying to add to keyring, already exists in keyring.
    Return code remains 1, just don't report it as error.

    Signed-off-by: Michal Hlavinka <mhlavink@redhat.com>
387. By Michal Hlavinka 18 hours ago

    check and fix asprintf's error codes

    Change all MOUNT_ERROR return codes for asprintf failure to -ENOMEM.
    Make sure all return codes are reset to zero or overwritten,
    because asprintf doesn't return zero for success.

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


Acked-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                                        rc = -ENOMEM;
126
126
                                        goto out;
127
127
                                }
 
128
                                rc = 0;
128
129
                        }
129
130
next_dst_cursor:
130
131
                        prev_dst_cursor = dst_cursor;