Applied patch from Bloeslaw Tokarski which should improve

performance of insserv in some cases by bypassing unnecessary
some fadvise calls.
Closes Debian bug #775912
This commit is contained in:
Jesse Smith 2019-01-15 19:24:15 -04:00
parent d05c1ad557
commit eb3a7f8e43
2 changed files with 6 additions and 3 deletions

View File

@ -32,7 +32,10 @@ November 2018 - jsmith@resonatingmedia.com
is not executable, to better indicate the script will not
be enabled at boot/entering runlevel.
Closes Debian bug 661314.
- Applied patch from Bloeslaw Tokarski which should improve
performance of insserv in some cases by bypassing unnecessary
some fadvise calls.
Closes Debian bug #775912
-------------------------------------------------------------------
October 2018 - jsmith@resonatingmedia.com

View File

@ -1900,7 +1900,7 @@ static void scan_script_locations(const char *const path, const char *const over
continue;
}
lsb = scan_script_defaults(dfd, d->d_name, override_path, &name, true, ignore);
lsb = scan_script_defaults(dfd, d->d_name, override_path, &name, false, ignore);
if (!name) {
warn("warning: script is corrupt or invalid: %s/%s%s\n", path, rcd, d->d_name);
continue;
@ -2964,7 +2964,7 @@ int main (int argc, char *argv[])
const char *const name = argv[c];
service_t * first = (service_t*)0;
char * provides, * begin, * token;
const uchar lsb = scan_script_defaults(dfd, name, override_path, (char**)0, true, ignore);
const uchar lsb = scan_script_defaults(dfd, name, override_path, (char**)0, false, ignore);
if ((lsb & FOUND_LSB_HEADER) == 0) {
if ((lsb & (FOUND_LSB_DEFAULT|FOUND_LSB_OVERRIDE)) == 0)