P J P <[email protected]> ha escrit:

>    - checking `change_directory_option' makes no difference here.

No, it does.  When it is not set, cpio operates the way it did before.

> fact if change_directory_option is NULL, and directory_name[0] !=
> '/', then this will fail, because directory_name is not an
> absolute path.

It is not required to be absolute.

> In either case, output_name.ds_string starts with the directory_name,
> which could be different from change_directory_option, because in
> src/main.c directory_name = argv[index] 

Yes, it is intended.

> Also change_dir() could create problems if the input file paths are
> relative to the current directory.

That's the question of creating proper file lists.  It is not not
related to cpio proper.

Regards,
Sergey


Reply via email to