redirection and smbwrapper
Alexandre Oliva
oliva at dcc.unicamp.br
Sat Oct 3 14:05:09 GMT 1998
Andrew Tridgell <tridge at samba.anu.edu.au> 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 dcc.unicamp.br mailto:aoliva at acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the samba-technical
mailing list