Operating System - HP-UX
1836318 Members
3172 Online
110100 Solutions
New Discussion

use of wu-ftpd ftpconversions file

 
SOLVED
Go to solution
Chris Harris
Contributor

use of wu-ftpd ftpconversions file

i pulled this sample line from a website:

: : :.tar.gz:/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP

the values in the 'types' and 'options' field are unfamiliar to me. (T_REG|T_DIR, O_COMPRESS|O_TAR respectively).

can someone shed some light on what is valid input here?
1 REPLY 1
Luc Bussieres
Frequent Advisor
Solution

Re: use of wu-ftpd ftpconversions file

Hi,

I went in the sources and look for these definitions
they are in the src/conversions.h file:

#define T_REG 1 /* regular files OK */
#define T_DIR 2 /* directories OK */
#define T_ASCII 4 /* ASCII transfers OK */

end in the src/extensions.h file:
#define O_COMPRESS (1 << 0) /* file was compressed */
#define O_UNCOMPRESS (1 << 1) /* file was uncompressed */
#define O_TAR (1 << 2) /* file was tar'ed */

I hope this helped

Luc
La réponse est le malheur de la question