![]() |
I've posted this problem before, but now I've added some debugging code to faxQueueApp.c++ (after the errormessage is generated). In short, the problem is that the TIFFOpen(outfile, "r") at line 1012 was failing, generating a "Could not reopen converted document to verify format" message when I sent a fax (with sendfax) as a normal user, but worked fine as root. I added some debugging code (appended below) to give a directory listing of the offending file as well as effective and real user and group ID's (which are the root or uucp respectively). I run faxq from /var/spool/fax with the -D flag and here's what I see: -rw------- 1 uucp wheel 0 Dec 6 12:56 docq/doc25.cover;70 PID=10 (0); GID=10 (0) The ID's and permissions are OK, but the file is empty! I'm running on an i685-linux-gnu box, and have upgraded to glibc-2.2 and gs-6.50 (no change). I also am using a freshly installed libtiff.so.3.5.5. Any suggestions? This shouldn't be happening. (Could there be a problem with a SUID script?) David Here's the debugging routine (in C, so you'll need an extern "C" block in the calling C++ module). #include <stdio.h> #include <sys/stat.h> void strange_debug(const char *file) { struct stat sbuf; if(stat(file,&sbuf)) perror(file); else { char *p,*pp,fbuf[1024],buf[1024]; FILE *stream; for(p=fbuf,pp=file;*pp;) { if(*pp==';') *p++='\\'; *p++=*pp++; } *p='\0'; sprintf(buf,"ls -l %s",fbuf); // I know this is ugly! system(buf); printf("PID=%d (%d); GID=%d (%d)\n",geteuid(), getuid(), getegid(), getgid()); fflush(stdout); } } ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null