Thayne Harbaugh:

>* The check_path() calls check for "/root" and "/old_root" - I believe
>> that should be "/root" and "/root/old_root".
>>
>> * chdir("/") is recommended after pivot_root()
>>
>> * init_argv[0] isn't set properly to the basename pointed to by char *s
>> - this fix also eliminates six lines of unecessary code and improves
>> readability by using get_arg().

The get_arg() simplification causes "int i" to be unused.

1 file changed