Andre Poenitz wrote:
The current implementation allows you to embed *any* file, relative or
absolute. Once they are embedded, they should work in the embedded
mode. If you unbundle them under the same system, they went back to
their original locations. (Note that, because these out-of-tree files
are relatively stable, overwrite is usually not needed). When we
unbundle them on another system, we try to put them to the same
location, but this can be impossible due to OS differences. This is
where all the discussions start.

I'd simply drop that feature. There is no proper solution possible.

Actually, when I think about it...
Suppose I bundle a file with relative path

  "../../../../../../../../../etc/passwd"

and open that file with root permissions in LyX.

What would happen?

Too complicated. In the current implementation, you can bundle arbitrary files by absolute pathnames.

But the answer is: LyX would ask if you wanted to over-write /etc/passwd. I hope it is obvious that LyX should not even be allowed to ask this question.

rh

Reply via email to