redirection and smbwrapper

Alexandre Oliva oliva at
Sat Oct 3 14:05:09 GMT 1998

Andrew Tridgell <tridge at> writes:

> One thing that I've just noticed doesn't work is redirection to/from
> files on a smbwrapper filesystem. For example a simple:

>       echo hello > foo.txt

I assume you're running the shell with smbwrapper pre-loaded.

> The dup2() is no problem but I can't think of a good way
> of passing file descriptors. Anyone have any ideas?

How about an environment variable?  The library start-up code could
check whether the variable is defined and use its contents to map file 
descriptors to SMB files.

Alexandre Oliva
mailto:oliva at mailto:aoliva at
Universidade Estadual de Campinas, SP, Brasil

More information about the samba-technical mailing list