google / google/fscrypt

failureExitCode should return higher number than 1 if user tries to lock an already locked file

Open
#378 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1k
Forks
111
Avg merge
2d 19h
Merged PRs (30d)
3

Description

It would be helpful for scripts, if `fscrypt` would return an exit code other than 1 if the user triggers an `ErrDirAlreadyLocked` condition. Use case is for scripting actions. Can you change it to return an error code of 2 for example in the scenario of trying to lock a file that is already locked?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.