Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Backport openSUSE patches #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libapol/swig/java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ classes = $(patsubst %.java, $(package_dir)/%.class, $(java_files))
# just depend upon the first class file, and let the Java compiler
# create the rest of them.
$(firstword $(classes)): $(java_files)
$(JAVAC) $(AM_JFLAGS) $(JAVAFLAGS) -d . $^
$(JAVAC) $(AM_JFLAGS) $(JAVACFLAGS) -d . $^

$(wordlist 2,$(words $(classes)),$(classes)): $(firstword $(classes))

Expand Down
2 changes: 1 addition & 1 deletion libpoldiff/swig/java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ classes = $(patsubst %.java, $(package_dir)/%.class, $(java_files))
# just depend upon the first class file, and let the Java compiler
# create the rest of them.
$(firstword $(classes)): $(java_files)
$(JAVAC) $(AM_JFLAGS) $(JAVAFLAGS) -d . $^
$(JAVAC) $(AM_JFLAGS) $(JAVACFLAGS) -d . $^

$(wordlist 2,$(words $(classes)),$(classes)): $(firstword $(classes))

Expand Down
9 changes: 9 additions & 0 deletions libqpol/src/module_compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ role_datum_t *declare_role(unsigned char isattr)
assert(0); /* should never get here */
}
}
return 0;
}

type_datum_t *declare_type(unsigned char primary, unsigned char isattr)
Expand Down Expand Up @@ -373,6 +374,7 @@ type_datum_t *declare_type(unsigned char primary, unsigned char isattr)
assert(0); /* should never get here */
}
}
return 0;
}

static int user_implicit_bounds(hashtab_t users_tab,
Expand Down Expand Up @@ -509,6 +511,7 @@ user_datum_t *declare_user(void)
assert(0); /* should never get here */
}
}
return 0;
}

/* Return a type_datum_t for the local avrule_decl with the given ID.
Expand Down Expand Up @@ -927,6 +930,7 @@ static int require_role_or_attribute(int pass, unsigned char isattr)
assert(0); /* should never get here */
}
}
return 0;
}

int require_role(int pass)
Expand Down Expand Up @@ -990,6 +994,7 @@ static int require_type_or_attribute(int pass, unsigned char isattr)
assert(0); /* should never get here */
}
}
return 0;
}

int require_type(int pass)
Expand Down Expand Up @@ -1051,6 +1056,7 @@ int require_user(int pass)
assert(0); /* should never get here */
}
}
return 0;
}

static int require_bool_tunable(int pass, int is_tunable)
Expand Down Expand Up @@ -1102,6 +1108,7 @@ static int require_bool_tunable(int pass, int is_tunable)
assert(0); /* should never get here */
}
}
return 0;
}

int require_bool(int pass)
Expand Down Expand Up @@ -1175,6 +1182,7 @@ int require_sens(int pass)
assert(0); /* should never get here */
}
}
return 0;
}

int require_cat(int pass)
Expand Down Expand Up @@ -1228,6 +1236,7 @@ int require_cat(int pass)
assert(0); /* should never get here */
}
}
return 0;
}

static int is_scope_in_stack(scope_datum_t * scope, scope_stack_t * stack)
Expand Down
1 change: 1 addition & 0 deletions libqpol/src/policy_define.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ int define_category(void)
assert(0); /* should never get here */
}
}
return 0;
}

return 0;
Expand Down
1 change: 1 addition & 0 deletions libqpol/src/policy_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/* Used by SETools to determine if source MLS or not */
int define_mls(void);

avrule_t *define_cond_filename_trans();
avrule_t *define_cond_compute_type(int which);
avrule_t *define_cond_pol_list(avrule_t *avlist, avrule_t *stmt);
avrule_t *define_cond_te_avtab(int which);
Expand Down
2 changes: 1 addition & 1 deletion libqpol/swig/java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ classes = $(patsubst %.java,$(package_dir)/%.class,$(filter %.java, $(BUILT_SOUR
# just depend upon the first class file, and let the Java compiler
# create the rest of them.
$(firstword $(classes)): $(filter %.java, $(BUILT_SOURCES))
$(JAVAC) $(AM_JFLAGS) $(JAVAFLAGS) -d . $^
$(JAVAC) $(AM_JFLAGS) $(JAVACFLAGS) -d . $^

$(wordlist 2,$(words $(classes)),$(classes)): $(firstword $(classes))

Expand Down
2 changes: 1 addition & 1 deletion libseaudit/swig/java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ classes = $(patsubst %.java, $(package_dir)/%.class, $(java_files))
# just depend upon the first class file, and let the Java compiler
# create the rest of them.
$(firstword $(classes)): $(java_files)
$(JAVAC) $(AM_JFLAGS) $(JAVAFLAGS) -d . $^
$(JAVAC) $(AM_JFLAGS) $(JAVACFLAGS) -d . $^

$(wordlist 2,$(words $(classes)),$(classes)): $(firstword $(classes))

Expand Down
2 changes: 1 addition & 1 deletion libsefs/swig/java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ classes = $(patsubst %.java, $(package_dir)/%.class, $(java_files))
# just depend upon the first class file, and let the Java compiler
# create the rest of them.
$(firstword $(classes)): $(java_files)
$(JAVAC) $(AM_JFLAGS) $(JAVAFLAGS) -d . $^
$(JAVAC) $(AM_JFLAGS) $(JAVACFLAGS) -d . $^

$(wordlist 2,$(words $(classes)),$(classes)): $(firstword $(classes))

Expand Down
3 changes: 2 additions & 1 deletion sediff/result_item_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "result_item_render.h"

#include <assert.h>
#include <string.h>

static const char *form_name_map[] = {
"Added", "Added New Type", "Removed", "Removed Missing Type", "Modified"
Expand Down Expand Up @@ -139,7 +140,7 @@ void result_item_print_string_inline(GtkTextBuffer * tb, GtkTextIter * iter, con
}
case ' ':
{
if (current_tag != "modified") {
if ( strcmp( current_tag, "modified") != 0 ) {
gtk_text_buffer_insert_with_tags_by_name(tb, iter, s + start, end - start + 1, current_tag, NULL);
start = end + 1;
current_tag = "modified";
Expand Down