cxgbetool(8): mode must be specified when creating the dump file.
MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
ad8bdad7b2
commit
b2a81924f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user