Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

don't overwrite existing keys #449

Merged
merged 1 commit into from
Apr 20, 2015
Merged

don't overwrite existing keys #449

merged 1 commit into from
Apr 20, 2015

Conversation

DavidVorick
Copy link
Member

also a quick fix to the makefile

return types.UnlockConditions{}, err
}
return types.UnlockConditions{}, ErrOverwrite
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be sufficient:

// return an error if the file already exists
if _, err := os.Stat(keyFilename); err == nil {
    return types.UnlockConditions{}, ErrOverwrite
}

lukechampine added a commit that referenced this pull request Apr 20, 2015
@lukechampine lukechampine merged commit af67f02 into master Apr 20, 2015
@DavidVorick DavidVorick deleted the siag-usability branch April 20, 2015 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants