summaryrefslogtreecommitdiff
path: root/man/dmidecode.8
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2023-02-20 14:53:31 +0100
committerJean Delvare <jdelvare@suse.de>2023-02-20 14:53:31 +0100
commit6ca381c1247c81f74e1ca4e7706f70bdda72e6f2 (patch)
treed9b660b6bf46bc3c10eb23ff8b0d2ceb354f126b /man/dmidecode.8
parentd8cfbc808f387e87091c25e7d5b8c2bb348bb206 (diff)
downloaddmidecode-git-6ca381c1247c81f74e1ca4e7706f70bdda72e6f2.tar.gz
dmidecode: Do not let --dump-bin overwrite an existing file
Make sure that the file passed to option --dump-bin does not already exist. In practice, it is rather unlikely that an honest user would want to overwrite an existing dump file, while this possibility could be used by a rogue user to corrupt a system file. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Diffstat (limited to 'man/dmidecode.8')
-rw-r--r--man/dmidecode.83
1 files changed, 2 insertions, 1 deletions
diff --git a/man/dmidecode.8 b/man/dmidecode.8
index 62aa304..83affc2 100644
--- a/man/dmidecode.8
+++ b/man/dmidecode.8
@@ -1,4 +1,4 @@
-.TH DMIDECODE 8 "January 2019" "dmidecode"
+.TH DMIDECODE 8 "February 2023" "dmidecode"
.\"
.SH NAME
dmidecode \- \s-1DMI\s0 table decoder
@@ -164,6 +164,7 @@ hexadecimal and \s-1ASCII\s0. This option is mainly useful for debugging.
Do not decode the entries, instead dump the DMI data to a file in binary
form. The generated file is suitable to pass to \fB--from-dump\fP
later.
+\fIFILE\fP must not exist.
.TP
.BR " " " " "--from-dump \fIFILE\fP"
Read the DMI data from a binary file previously generated using