cxgbetool(8): mode must be specified when creating the dump file.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-09-13 00:37:42 +00:00
parent fdbf11746a
commit 7f7a2bce78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323514

View File

@ -1896,7 +1896,8 @@ dumpstate(int argc, const char *argv[])
return (EINVAL);
}
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY);
fd = open(fname, O_CREAT | O_TRUNC | O_EXCL | O_WRONLY,
S_IRUSR | S_IRGRP);
if (fd < 0) {
warn("open(%s)", fname);
return (errno);