diff options
author | Jan Rękorajski | 2006-04-21 23:40:29 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 6712452557b6950e006f6a9c46742823241b3524 (patch) | |
tree | 689daf94be682fd0d8ddd16fda3fdebb1e91b14e /chkconfig-add.patch | |
parent | d220de741a775fd5b7601483c041a23bc641c090 (diff) | |
download | chkconfig-6712452557b6950e006f6a9c46742823241b3524.zip chkconfig-6712452557b6950e006f6a9c46742823241b3524.tar.gz |
- orphaned, outdated
Changed files:
chkconfig-add.patch -> 1.6
chkconfig-link.patch -> 1.2
chkconfig-noxinet.patch -> 1.4
chkconfig-pl.po-update.patch -> 1.4
chkconfig-ponames.patch -> 1.3
chkconfig.pl.po -> 1.2
Diffstat (limited to 'chkconfig-add.patch')
-rw-r--r-- | chkconfig-add.patch | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/chkconfig-add.patch b/chkconfig-add.patch deleted file mode 100644 index 330177f..0000000 --- a/chkconfig-add.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff -Nru chkconfig-1.2.24h.orig/chkconfig.c chkconfig-1.2.24h/chkconfig.c ---- chkconfig-1.2.24h.orig/chkconfig.c Wed Jul 17 20:10:55 2002 -+++ chkconfig-1.2.24h/chkconfig.c Wed Jan 22 11:56:32 2003 -@@ -31,6 +31,7 @@ - #include <sys/stat.h> - #include <unistd.h> - static char *progname; -+extern int addItem; - struct config conf; // used by leveldb.c - - #define _(String) gettext((String)) -@@ -94,12 +95,10 @@ - if (s.type == TYPE_XINETD) return 0; - - for (i = 0; i <= conf.maxlevel; i++) { -- if (!isConfigured(name, i)) { - if ((1 << i) & s.levels) - doSetService(s, i, 1); - else - doSetService(s, i, 0); -- } - } - - return 0; -@@ -275,7 +274,7 @@ - - - int main(int argc, char ** argv) { -- int listItem = 0, addItem = 0, delItem = 0; -+ int listItem = 0, delItem = 0; - int rc, i, x; - char * levels = NULL; - int help=0, version=0; -diff -Nru chkconfig-1.2.24h.orig/leveldb.c chkconfig-1.2.24h/leveldb.c ---- chkconfig-1.2.24h.orig/leveldb.c Fri Apr 19 03:15:55 2002 -+++ chkconfig-1.2.24h/leveldb.c Wed Jan 22 12:04:47 2003 -@@ -11,6 +11,10 @@ - #include <stdio.h> - #include <string.h> - #include <unistd.h> -+#include <sys/types.h> -+#include <dirent.h> -+ -+int addItem = 0; - - /* Changes - 2001-12-03 - Petter Reinholdtsen <pere@hungry.com> -@@ -231,6 +235,9 @@ - char overflow; - char levelbuf[20]; - char * english_desc = NULL; -+ DIR *dir; -+ struct dirent *dirent; -+ int i; - - sprintf(filename, "%s/%s", conf.initdir, name); - -@@ -345,6 +352,21 @@ - - serv.name = strdup(name); - -+ if (addItem) { -+ strcpy(levelbuf,"/etc/rc.d/rc0.d"); -+ for(i=0;i<7;i++,levelbuf[12]++) { -+ dir=opendir(levelbuf); -+ if (!dir) return 1; -+ while ((dirent=readdir(dir))) { -+ if (strlen(dirent->d_name)<4) continue; -+ if (strcmp(dirent->d_name+3,name)) continue; -+ if (*dirent->d_name=='K') serv.levels &= ~(1<<i); -+ else if (*dirent->d_name=='S') serv.levels |= 1<<i; -+ } -+ closedir(dir); -+ } -+ } -+ - *service = serv; - return 0; - } |