auditreduce.c (155131) | auditreduce.c (155364) |
---|---|
1/* 2 * Copyright (c) 2004 Apple Computer, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 2004 Apple Computer, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#11 $ | 29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#13 $ |
30 */ 31 32/* 33 * Tool used to merge and select audit records from audit trail files 34 */ 35 36/* 37 * XXX Currently we do not support merging of records from multiple --- 486 unchanged lines hidden (view full) --- 524{ 525 struct group *grp; 526 struct passwd *pw; 527 struct tm tm; 528 au_event_t *n; 529 FILE *fp; 530 int i; 531 char *objval, *converr; | 30 */ 31 32/* 33 * Tool used to merge and select audit records from audit trail files 34 */ 35 36/* 37 * XXX Currently we do not support merging of records from multiple --- 486 unchanged lines hidden (view full) --- 524{ 525 struct group *grp; 526 struct passwd *pw; 527 struct tm tm; 528 au_event_t *n; 529 FILE *fp; 530 int i; 531 char *objval, *converr; |
532 char ch; | 532 int ch; |
533 char timestr[128]; 534 char *fname; 535 536 converr = NULL; 537 538 while ((ch = getopt(argc, argv, "Aa:b:c:d:e:f:g:j:m:o:r:u:")) != -1) { 539 switch(ch) { 540 case 'A': --- 159 unchanged lines hidden --- | 533 char timestr[128]; 534 char *fname; 535 536 converr = NULL; 537 538 while ((ch = getopt(argc, argv, "Aa:b:c:d:e:f:g:j:m:o:r:u:")) != -1) { 539 switch(ch) { 540 case 'A': --- 159 unchanged lines hidden --- |