Bug 325 - Efax attempts to open null lock-file, fails
Efax attempts to open null lock-file, fails
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: efax (Show other bugs)
5.2
sparc Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-12-07 06:56 EST by Andrew Macpherson
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-02-02 12:19:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrew Macpherson 1998-12-07 06:56:56 EST
diff -ru efax08a.old/efax.c efax08a/efax.c
--- efax08a.old/efax.c  Tue Sep 17 05:30:43 1996
+++ efax08a/efax.c      Mon Dec  7 10:06:57 1998
@@ -1970,6 +1970,7 @@
   char fnamepat [ PATH_MAX ] ;

   argv0 = argv[0] ;
+  memset((void *)lkfile, 0, sizeof(lkfile));  /* random
effects on sparc linux */
   msg ( "I " Version " " Copyright ) ;
   argv0 = efaxbasename ( argv0 ) ;
   msg ( "A compiled "__DATE__ " " __TIME__ ) ;
diff -ru efax08a.old/efaxos.c efax08a/efaxos.c
--- efax08a.old/efaxos.c        Sat Jun 29 21:45:25 1996
+++ efax08a/efaxos.c    Mon Dec  7 10:44:10 1998
@@ -448,7 +448,7 @@
 {
   int err = 0 ;
   char **p = lkfiles ;
-  while ( *p && ! err )
+  while ( *p && **p && ! err )
     if ( ( err = ttlock ( *p++, log ) ) == 3 ) err = 0 ;
   return err ;
 }
@@ -461,7 +461,7 @@
 {
   int err = 0, i ;
   char **p = lkfiles ;
-  while ( *p )
+  while ( *p && **p )
     if ( ( i = ttunlock ( *p++ ) ) != 0 ) err = i ;
   return err ;
 }
Comment 1 Preston Brown 1999-02-02 12:19:59 EST
patch applied to efax in RawHide.

Note You need to log in before you can comment on or make changes to this bug.