Author: np
Date: Wed Sep 13 00:37:42 2017
New Revision: 323514
URL: https://svnweb.freebsd.org/changeset/base/323514
Log:
cxgbetool(8): mode must be specified when creating the dump file.
MFC after: 1 week
Sponsored by: Chelsio Communications
Modified:
head/usr.sbin/cxgbetool/cxgbetool.c
Modified: head/usr.sbin/cxgbetool/cxgbetool.c
==============================================================================
--- head/usr.sbin/cxgbetool/cxgbetool.c Wed Sep 13 00:25:09 2017
(r323513)
+++ head/usr.sbin/cxgbetool/cxgbetool.c Wed Sep 13 00:37:42 2017
(r323514)
@@ -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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"