On Wed, 27 Jan 2010, Jukka Ruohonen wrote:

I can put it back. But as has been pointed out, does it need to be there to
confuse users when neither (a) the directories exist in the default install
nor (b) does support for this exist in the code?

Support does exist - you just have to look a bit deeper than the surface. Jason has provided the relevant sources where the apm or acpi path is created; here's where it gets used:

static void
run_script(const char *argv[])
{
        char path[MAXPATHLEN+1];
        size_t i, j;

        for (i = 0; i < __arraycount(script_paths); i++) {
                (void)snprintf(path, sizeof(path), "%s/%s", script_paths[i],
                    argv[0]);
                if (access(path, R_OK|X_OK) == 0) {
                        ...
                        return;
                }
        }
}

-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------

Reply via email to