System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

pax graph option space in path problem

maki hakapeszi
Occasional Advisor

pax graph option space in path problem

Hi,

archlist.idx contains files and directories with spaces
i ./arch/dir with whitespace
i './arch/dir with whitespace'
i "./arch/file with whitespace"
i ./arch/file\ with\ whitespace

Archiving with graph option gives the following erro message
pax -wvtx pax -o times -o graph='./archlist' > archive.pax
pax_enh: ./arch/dir : No such file or directory
pax_enh: './arch/dir : No such file or directory
pax_enh: "./arch/file : No such file or directory
pax_enh: ./arch/file\ : No such file or directory

Is it a bug?
Thanks
fpeter
8 REPLIES
Dennis Handly
Acclaimed Contributor

Re: pax graph option space in path problem

ignite doesn't like files with stinkin' spaces. And since it uses pax, that must be a limitation.
It seems you tried all of the ways to quote.
maki hakapeszi
Occasional Advisor

Re: pax graph option space in path problem

Thank you for fast reply.
Unfortunately developers like files with stinkin' spaces.

Thanks
fpeter
Dennis Handly
Acclaimed Contributor

Re: pax graph option space in path problem

>Unfortunately developers like files with stinkin' spaces.

Is the problem that the entries in the graph file can't have spaces but files below those directories can?
maki hakapeszi
Occasional Advisor

Re: pax graph option space in path problem

Yes
maki hakapeszi
Occasional Advisor

Re: pax graph option space in path problem

I have directories with spaces like '/etc/vala mi' (VxFS allow any byte except NUL in it's name)
and I want to archive it with pax using graph file.
Pax cannot find the directory because it parses the directory name till the first space.

I think it's not connected with ignite.

Thanks
fpeter
Dennis Handly
Acclaimed Contributor

Re: pax graph option space in path problem

>pax cannot find the directory because it parses the directory name till the first space.
>I think it's not connected with ignite.

It's only connected since ignite has the same limitation.

If you want something done about this, you need to contact the Response Center to file an enhancement request.
Dennis Handly
Acclaimed Contributor

Re: pax graph option space in path problem

You can of course toss your directory with the stinkin' spaces and replace it by one without. Then create a symlink with the spaces.
Then update your graph file to the new name.

pax(1) will except spaces if quoted on the command line or through stdin.

If you have a graph file, it will only take the quoted file on the command line.
$ pax -o graph=graph -x pax -v -f foo.pax -w "ABC DEF"
maki hakapeszi
Occasional Advisor

Re: pax graph option space in path problem

Workaround is under construction, but i think it's not an enhancement.

Man page says:
Graph file entries consist of a line beginning with either i (include) or e (exclude), followed by white space, and then the path name of a tree.

This means an enry is from the white space to the end of the line, NOT the to the second white space.

Thanks
fpeter