Bug#573571: insserv fails if cwd inaccessible by root
Jesse Smith
jessefrgsmith at yahoo.ca
Sun Dec 16 15:50:24 GMT 2018
On 12/16/18 3:41 AM, Dmitry Bogatov wrote:
>
> control: tags -1 +upstream +confirmed
>
> [2010-03-12 14:21] Ben Harris <bjh21 at cam.ac.uk>
>> wraith:/tmp# insserv -n
>> insserv: warning: current stop runlevel(s) (0 1 6) of script `ntp' overwrites defaults (empty).
>> insserv: warning: current stop runlevel(s) (0 1 6) of script `nethack-common' overwrites defaults (empty).
>> insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
>>
>> I don't think insserv has any reason to look at my home directory, so it
>> should succeed even in the current directory is inaccessible.
>
> I can reproduce this bug even simplier:
>
> $ mkdir /tmp/test
> $ cd /tmp/test
> $ rmdir /tmp/test
> $ sudo insserv -n
> insserv: pushd() can not change to directory /etc/init.d: No such file or directory
>
> Jesse, can you please take a look?
>
>
I can confirm this bug exists upstream in the latest branch. Will take a
look at it and see about making a patch.
- Jesse
More information about the Debian-init-diversity
mailing list