1 --- chkconfig-1.3.58/chkconfig.c~ 2012-12-04 15:41:14.000000000 +0200
2 +++ chkconfig-1.3.58/chkconfig.c 2012-12-04 15:42:06.080488828 +0200
9 #define _(String) gettext((String))
14 for (i = 0; i < 7; i++) {
15 - if (!isConfigured(name, i, NULL, NULL)) {
16 if ((1 << i) & s.levels)
17 doSetService(s, i, 1);
19 doSetService(s, i, 0);
27 int main(int argc, const char ** argv) {
28 - int listItem = 0, addItem = 0, delItem = 0, overrideItem = 0, noRedirectItem = 0;
29 + int listItem = 0, delItem = 0, overrideItem = 0, noRedirectItem = 0;
33 --- chkconfig-1.4/leveldb.c~ 2015-04-25 12:18:41.000000000 +0300
34 +++ chkconfig-1.4/leveldb.c 2015-04-25 12:19:52.959858162 +0300
39 +#include <sys/types.h>
49 int selinux_restore(const char *name) {
50 struct selabel_handle *hnd = NULL;
53 serv.provides[1] = NULL;
58 + struct dirent *dirent;
61 + strcpy(levelbuf,"/etc/rc.d/rc0.d");
62 + for(i=0;i<7;i++,levelbuf[12]++) {
63 + dir=opendir(levelbuf);
65 + while ((dirent=readdir(dir))) {
66 + if (strlen(dirent->d_name)<4) continue;
67 + if (strcmp(dirent->d_name+3,name)) continue;
68 + if (*dirent->d_name=='K') serv.levels &= ~(1<<i);
69 + else if (*dirent->d_name=='S') serv.levels |= 1<<i;