Hylafax Developers Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[hylafax-devel] Re: problem to submit a fax request
Hi,
I have taken a look, and I think it is a permissions problem on CREATION
of the seqf.
Production system...
total 1
-rw------- 1 uucp 60002 5 Mar 04 20:16 seqf
Newly created seqf in test environment:
-rw-rw---- 1 uucp 60002 674 Mar 05 17:44 q1
-rw------- 1 uucp uucp 1 Mar 05 17:38 seqf
So, I think the problem is with the GROUP ownership of the seqf ( gut
feeling only )..
Just my $0.02 worth, I will investigate further, but am tracking down some
other problems right now...
>
> > Hi,
> >
> > Unless HylaFAX has done something REALLY strange,
> >
> > the O_RDWD should be
> > O_RDWR
> >
> > that stands for ReaD WRite...
> >
> >
> > Check that out...
>
> Quite right. I was cribbing off of Guillaume's message when I made the change. Sticking to his original suggestion, correcting it for typos, I see:
>
> [root@ducent darren]# /usr/bin/sendfax -d123 < /etc/hosts
> request id is 1 (group id 1) for host localhost (1 file)
> [root@ducent darren]# /usr/bin/sendfax -d123 < /etc/hosts
> request id is 2 (group id 2) for host localhost (1 file)
> [root@ducent darren]# /usr/bin/sendfax -d123 < /etc/hosts
> request id is 3 (group id 3) for host localhost (1 file)
>
> [root@ducent darren]# faxstat -s
> HylaFAX scheduler on localhost.localdomain: Running
>
> JID Pri S Owner Number Pages Dials TTS Status
> 1 127 W root 123 0:0 0:12
> 2 127 W root 123 0:0 0:12
> 3 127 W root 123 0:0 0:12
>
> Looks good to me! Can anyone suggest a reason I should not commit this change? Is this the right way to fix the problem?
>
> --- hylafax.orig/hfaxd/HylaFAXServer.c++ Thu Nov 18 12:18:57 1999
> +++ hylafax-4.1beta3/hfaxd/HylaFAXServer.c++ Mon Mar 6 00:58:39 2000
> @@ -512,7 +512,7 @@
> u_int
> HylaFAXServer::getSequenceNumber(const char* filename, u_int count, fxStr& emsg)
> {
> - int fd = Sys::open(filename, O_CREAT|O_RDWR|O_EXCL, 0600);
> + int fd = Sys::open(filename, O_CREAT|O_RDWR,0600);
> if (fd < 0) {
> emsg = fxStr::format("Unable to open sequence number file %s; %s.",
> filename, strerror(errno));
>
> Thanks.
>
> Hey, look, the CVS version just compiled and ran! ;-) Cool!
>
> -Darren
>
>
>
--
Steve Williams, Calgary, Alberta, Canada
Genie Computer Systems Inc.
steve@genie96.com
"A man doesn't begin to attain wisdom until he recognizes that he is
no longer indispensable."
- Admiral Richard E. Byrd ( 1888-1957 )