updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / selinux-setools / 0004-Fix-man-pages-and-getoptions.patch
blobc06270e6e02804fd7932163220266f991680b94e
1 From b3c8ef5822dbf3e3272fc29627ddac7e20e936d5 Mon Sep 17 00:00:00 2001
2 From: Dan Walsh <dwalsh@redhat.com>
3 Date: Tue, 20 Sep 2011 15:41:12 -0400
4 Subject: [PATCH 4/6] Fix-man-pages-and-getoptions
6 ---
7 man/replcon.1 | 2 ++
8 man/seinfo.1 | 6 +++++-
9 seaudit/seaudit-report.c | 2 +-
10 sediff/sediff.c | 2 +-
11 4 files changed, 9 insertions(+), 3 deletions(-)
13 diff --git a/man/replcon.1 b/man/replcon.1
14 index 8aca08a..478dc51 100644
15 --- a/man/replcon.1
16 +++ b/man/replcon.1
17 @@ -44,6 +44,8 @@ Search for files which include PATH.
18 .IP "-c CLASS, --class=CLASS"
19 Search only files of object class CLASS.
20 .SH OPTIONS
21 +.IP "-R, --regex"
22 +Enable regular expressions
23 .IP "-v, --verbose"
24 Display context info during replacement.
25 .IP "-h, --help"
26 diff --git a/man/seinfo.1 b/man/seinfo.1
27 index 8612119..6bc17db 100644
28 --- a/man/seinfo.1
29 +++ b/man/seinfo.1
30 @@ -76,6 +76,10 @@ There is no expanded information for this component.
31 .IP "--nodecon[=ADDR]"
32 Print a list of node contexts or, if ADDR is provided, print the statement for the node with address ADDR.
33 There is no expanded information for this component.
34 +.IP "--polcap"
35 +Print policy capabilities.
36 +.IP "--permissive"
37 +Print permissive types.
38 .IP "--portcon[=PORT]"
39 Print a list of port contexts or, if PORT is provided, print the statement for port PORT.
40 There is no expanded information for this component.
41 @@ -93,7 +97,7 @@ These details include the types assigned to an attribute or role and the permiss
42 This option is not available for all component types; see the description of each component for the details this option will provide.
43 .IP "--stats"
44 Print policy statistics including policy type and version information and counts of all components and rules.
45 -.IP "-l"
46 +.IP "-l, --line-breaks"
47 Print line breaks when displaying constraint statements.
48 .IP "-h, --help"
49 Print help information and exit.
50 diff --git a/seaudit/seaudit-report.c b/seaudit/seaudit-report.c
51 index af3c6fb..d436c18 100644
52 --- a/seaudit/seaudit-report.c
53 +++ b/seaudit/seaudit-report.c
54 @@ -100,7 +100,7 @@ static void seaudit_report_info_usage(const char *program_name, int brief)
55 printf(" -s, --stdin read log data from standard input\n");
56 printf(" -m, --malformed include malformed log messages\n");
57 printf(" -o FILE, --output=FILE output to FILE\n");
58 - printf(" --config=FILE read configuration from FILE\n");
59 + printf(" -c FILE, --config=FILE read configuration from FILE\n");
60 printf(" --html set output format to HTML\n");
61 printf(" --stylesheet=FILE HTML style sheet for formatting HTML report\n");
62 printf(" (ignored if --html is not given)\n");
63 diff --git a/sediff/sediff.c b/sediff/sediff.c
64 index 6022775..341c650 100644
65 --- a/sediff/sediff.c
66 +++ b/sediff/sediff.c
67 @@ -420,7 +420,7 @@ int main(int argc, char **argv)
68 poldiff_t *diff = NULL;
69 size_t total = 0;
71 - while ((optc = getopt_long(argc, argv, "ctarubANDLMCRqhV", longopts, NULL)) != -1) {
72 + while ((optc = getopt_long(argc, argv, "ctarubAqhV", longopts, NULL)) != -1) {
73 switch (optc) {
74 case 0:
75 break;
76 --
77 1.7.6.2