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,
> 
> 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





Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services