mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
When a user that is in the zkeyadm group, but is not the owner of the key file changes a key in the zkey repository, then error "Operation not permitted" occurs. This is due to a superfluous call to chmod on the key file. When key files are changed then the permissions of that file are retained anyway. Also fix a typo in the error message when chmod fails. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>