diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-11-21 12:33:13 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-11-21 12:33:13 +0000 |
commit | cc1dc4a4d6f4a4ca0619aded951e2917c22f5f56 (patch) | |
tree | 8d373e874011058429ee1121af44d45a2949f4bb /usr/src/cmd/auditreduce/main.c | |
parent | a0b43c9bf7333d73208e783521f77e1eb5c530e0 (diff) | |
parent | c85f09cc92abd00c84e58ec9f0f5d942906cb713 (diff) | |
download | illumos-joyent-cc1dc4a4d6f4a4ca0619aded951e2917c22f5f56.tar.gz |
[illumos-gate merge]
commit c85f09cc92abd00c84e58ec9f0f5d942906cb713
11972 resync smatch
commit 3128654191cf8267843c8a40c4e0f3ac65f599f1
11973 tem: we only can translate colors 0-7
commit 62ce8e2e52946c2ebc855b02452650365c19eafc
12003 libefi: add efi_reserved_sectors()
commit 78d83021c1426eb570f801cac4175645da13efe4
11986 libproc: cast between incompatible function types
commit 5928363ef66d875d343b47ca57f45a68d08a056a
12008 libc symbol test timeout should be bumped
Diffstat (limited to 'usr/src/cmd/auditreduce/main.c')
-rw-r--r-- | usr/src/cmd/auditreduce/main.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/usr/src/cmd/auditreduce/main.c b/usr/src/cmd/auditreduce/main.c index 3137bd9e9c..910b5aaf7e 100644 --- a/usr/src/cmd/auditreduce/main.c +++ b/usr/src/cmd/auditreduce/main.c @@ -25,6 +25,10 @@ */ /* + * Copyright 2019 Joyent, Inc. + */ + +/* * The Secure SunOS audit reduction tool - auditreduce. * Document SM0071 is the primary source of information on auditreduce. * @@ -247,11 +251,13 @@ mfork(audit_pcb_t *pcb, int nsp, int lo, int hi) * Convert descriptors to streams. */ if ((pcbn->pcb_fpr = fdopen(fildes[0], "r")) == NULL) { - perror(gettext("auditreduce: couldn't get read stream for pipe")); + perror(gettext("auditreduce: couldn't get read " + "stream for pipe")); return (-1); } if ((pcbn->pcb_fpw = fdopen(fildes[1], "w")) == NULL) { - perror(gettext("auditreduce: couldn't get write stream for pipe")); + perror(gettext("auditreduce: couldn't get " + "write stream for pipe")); return (-1); } if ((procno = fork()) == -1) { @@ -400,8 +406,10 @@ c_close(audit_pcb_t *pcb, int i) for (j = 0; j <= i; j++) { pcbt = &pcb->pcb_below[j]; if (fclose(pcbt->pcb_fpr) == EOF) { - if (!f_quiet) - perror(gettext("auditreduce: initial close on pipe failed")); + if (!f_quiet) { + perror(gettext("auditreduce: initial close " + "on pipe failed")); + } } /* * Free the buffer allocated to hold incoming records. @@ -426,8 +434,10 @@ static void p_close(audit_pcb_t *pcbn) { if (fclose(pcbn->pcb_fpw) == EOF) { - if (!f_quiet) - perror(gettext("auditreduce: close for write pipe failed")); + if (!f_quiet) { + perror(gettext("auditreduce: close for write " + "pipe failed")); + } } } |