#19 src/oddjobd.c: Fix non-selinux build
Merged a year ago by abbra. Opened a year ago by salahx.
Unknown source no_selinux  into  master

file modified
+4
@@ -2985,7 +2985,11 @@

  

  	/* Open a connection to the message bus. */

  	check_selinux_applicable();

+ #if SELINUX_ACLS

  	ctx = oddjob_dbus_listeners_new(options.bus, globals.selinux_enabled);

+ #else

+ 	ctx = oddjob_dbus_listeners_new(options.bus, 0);

+ #endif

  	if (ctx == NULL) {

  		fprintf(stderr, "Error connecting to D-Bus!\n");

  		return 2;

This fixes a oddjobd.c:2988:61: error: ‘struct <anonymous>’ has no member
named ‘selinux_enabled’

Signed-off-by: Christopher Byrne salah.coronya@gmail.com

Thanks. I looked at the alternatives and this seems to be the smallest fix.

Pull-Request has been merged by abbra

a year ago
Metadata