From 959ad5bfc4e970118f203d32ea94fce750afa6c4 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 30 Sep 2024 16:21:57 +0200 Subject: [PATCH] fixup! fixup! APPS/pkey: fix case where infile and outfile are the same --- doc/man1/openssl-pkey.pod.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/man1/openssl-pkey.pod.in b/doc/man1/openssl-pkey.pod.in index 77184020b861c..64e28bcadabb1 100644 --- a/doc/man1/openssl-pkey.pod.in +++ b/doc/man1/openssl-pkey.pod.in @@ -104,7 +104,8 @@ If the input contains no public key but a private key, its public part is used. This specifies the output file to save the encoded and/or text output of key or standard output if this option is not specified. The output filename can be the same as the input filename, -which leads to replacing the file contents in situ. +which leads to replacing the file contents. +Note that file I/O is not atomic. The output file is truncated and then written. If any cipher option is set but no B<-passout> is given then a pass phrase will be prompted for.