Date: Mon, 23 Oct 2017 16:55:22 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324929 - head/lib/libugidfw Message-ID: <201710231655.v9NGtMwE053291@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Oct 23 16:55:22 2017 New Revision: 324929 URL: https://svnweb.freebsd.org/changeset/base/324929 Log: Clean up trailing whitespace MFC after: 1 week Modified: head/lib/libugidfw/Makefile head/lib/libugidfw/ugidfw.c Modified: head/lib/libugidfw/Makefile ============================================================================== --- head/lib/libugidfw/Makefile Mon Oct 23 16:54:30 2017 (r324928) +++ head/lib/libugidfw/Makefile Mon Oct 23 16:55:22 2017 (r324929) @@ -2,7 +2,7 @@ PACKAGE=lib${LIB} LIB= ugidfw -SHLIB_MAJOR= 5 +SHLIB_MAJOR= 5 SRCS= ugidfw.c INCS= ugidfw.h Modified: head/lib/libugidfw/ugidfw.c ============================================================================== --- head/lib/libugidfw/ugidfw.c Mon Oct 23 16:54:30 2017 (r324928) +++ head/lib/libugidfw/ugidfw.c Mon Oct 23 16:55:22 2017 (r324929) @@ -194,7 +194,7 @@ bsde_rule_to_string(struct mac_bsdextended_rule *rule, cur += len; } if (rule->mbr_subject.mbs_flags & MBS_PRISON_DEFINED) { - len = snprintf(cur, left, "jailid %d ", + len = snprintf(cur, left, "jailid %d ", rule->mbr_subject.mbs_prison); if (len < 0 || len > left) goto truncated; @@ -334,7 +334,7 @@ bsde_rule_to_string(struct mac_bsdextended_rule *rule, &(mntbuf[i].f_fsid), sizeof(mntbuf[i].f_fsid)) == 0) break; - len = snprintf(cur, left, "filesys %s ", + len = snprintf(cur, left, "filesys %s ", i == numfs ? "???" : mntbuf[i].f_mntonname); if (len < 0 || len > left) goto truncated; @@ -972,7 +972,7 @@ bsde_parse_mode(int argc, char *argv[], mode_t *mode, snprintf(errstr, buflen, "Unknown mode letter: %c", argv[0][i]); return (-1); - } + } } return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710231655.v9NGtMwE053291>