diff options
| author | liuwentan <[email protected]> | 2023-12-21 10:24:49 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-12-21 10:24:49 +0800 |
| commit | 759f625cb178ada2751a9980062c4c9045a83675 (patch) | |
| tree | 4e33b3e87b7f316dd88f85860047363a16789d74 /src/maat_utils.c | |
| parent | 48af7e7aac84f673bf39a5679503bc891407a182 (diff) | |
Diffstat (limited to 'src/maat_utils.c')
| -rw-r--r-- | src/maat_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/maat_utils.c b/src/maat_utils.c index 9f91322..9b251c5 100644 --- a/src/maat_utils.c +++ b/src/maat_utils.c @@ -260,7 +260,7 @@ int system_cmd_gzip(const char *src_file, const char *dst_file) int system_cmd_encrypt(const char *src_file, const char *dst_file, const char *password) { char cmd[MAX_SYSTEM_CMD_LEN] = { 0 }; - snprintf(cmd, sizeof(cmd), "openssl enc -e -aes-256-cbc -k %s -p -nosalt -in %s -out %s -md md5", + snprintf(cmd, sizeof(cmd), "openssl enc -e -aes-256-cbc -k %s -nosalt -in %s -out %s -md md5", password, src_file, dst_file); return system(cmd); } |
