HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] textfmt picky about filenames?




When I send a _postscript_ file with carat's in the file name through 
sendfax, when it calls textfmt, it tries to break the filename apart on 
the carats (and according to truss, exec 'foo'). 

sendfax -D -m -k "now +72 hours" -n -f 'user@host.com' -d '55512123' "foo^bar"
 sh: foo: not found
 sh: bar: cannot open 
Error converting data; command was "/opt/hylafax/sbin/textfmt -B -f 
Courier-Bold  -p 11 -s default >/tmp//sndfaxQ_aaL5 < foo^bar"

However, when I run the textfmt command as displayed, it works. So 
somewhere in the handoff between sendfax and textfmt, the carat is 
throwing a wrench in. Truss says its trying to exec 'bar' and open() 
'foo':

29989:  stat64("/usr/sbin/bar", 0xFFBFF880)            Err#2 ENOENT
29991:  creat64("/tmp//sndfaxsxaiK6", 0666)             = 5
29989:  stat64("/usr/bin/bar", 0xFFBFF880)             Err#2 ENOENT
29991:  fcntl(1, F_GETFD, 0x00000000)                   = 0
29989:  stat64("/opt/hylafax/bin/bar", 0xFFBFF880)     Err#2 ENOENT
29991:  close(1)                                        = 0
29991:  fcntl(5, F_DUPFD, 0x00000001)                   = 1
29989:  stat64("/opt/hylafax/sbin/bar", 0xFFBFF880)    Err#2 ENOENT
29991:  close(5)                                        = 0
29989:  stat64("/usr/local/bin/bar", 0xFFBFF880)       Err#2 ENOENT
29991:  open64("bar", O_RDONLY)                        Err#2 ENOENT


This only occurs on postscript files, it happily processes the file if its 
a tiff!

Can anyone explain this behavior? What executable/script is the "^" 
throwing off?

thanks,

- liem


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions