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

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
np 2017-09-13 00:37:42 +00:00
parent ad8bdad7b2
commit b2a81924f5

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);