Date: Wed, 13 Sep 2017 00:37:42 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323514 - head/usr.sbin/cxgbetool Message-ID: <201709130037.v8D0bgPw013103@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709130037.v8D0bgPw013103>