MAGIC Magic Mailing List
 
 

From: Albert Ma (ama AT cag DOT lcs.mit.edu)
Date: Thu Oct 26 2000 - 11:55:58 EDT

  • Next message: Rajit Manohar: "mailing list archive"

    Hi,
    
    in utils/flock.c
    
    PaConvertTilde on line 166 overwrites the cad_path pointer to point to the
    trailing
    null.  You need to subsequently use cad_buf instead of cad_path.
    
    
    Here's a patch against the current CVS tree
    
    
    Index: flock.c
    ===================================================================
    RCS file: /ufs/repository/magic/utils/flock.c,v
    retrieving revision 1.3
    diff -u -r1.3 flock.c
    --- flock.c	2000/10/17 15:46:51	1.3
    +++ flock.c	2000/10/26 15:52:05
    @@ -169,7 +169,7 @@
     	 cad_path[0] = '\0';
            }
    
    -       sprintf(lock_buf, "%s/flock/lock_%u%u", cad_path,
    +       sprintf(lock_buf, "%s/flock/lock_%u%u", cad_buf,
     		name_time.tv_sec, name_time.tv_usec);
            sprintf(magic_buff, "MAGICID=lock_%u%u",
     		name_time.tv_sec, name_time.tv_usec);
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo