Subject: Re: Pine and "cross-device link" error
To: Claude Marinier <claude.marinier@dreo.dnd.ca>
From: Steve Hubert <hubert@cac.washington.edu>
List: netbsd-help
Date: 01/19/1999 11:02:59
This is a bug in pine4.05 which will be fixed in pine4.10. I believe the
problem can be worked around by making the address book a _personal_
address book for the user trying to rebuild the lu file. Let us know if
this doesn't work for you. Sorry for the inconvenience.

-- 
Steve Hubert <hubert@cac.washington.edu>
Networks and Distributed Computing, Univ. of Washington, Seattle

On Mon, 18 Jan 1999, Claude Marinier wrote:

> Hi,
> 
> I use Pine 4.05 with a global address book in /usr/local/etc. When I run
> as root hoping to create an 'lu' file, Pine fails with a "cross-device
> link" error. It fails to open the temporary 'lu' file in /usr/local/etc
> and opens it in /var/tmp; when it has finished with it, the 'rename' fails
> as expected (/var and /usr/local are in separate partitions).
> 
> Yes, I could avoid this problem by moving the address book to /var but
> this is not the right way to deal with errors.
> 
> Below is the debug output. What does "can't read PMAGIC" mean? The message
> seems to be caused by the attempt to create the 'lu' file (it appears
> after the decision to create).
> 
> Thanks.
> 
> - init_abook -
> - adrbk_open(/usr/local/etc/dreo.pine) -
> copy_file(/usr/local/etc/dreo.pine, 0) -
> Index file /usr/local/etc/dreo.pine.lu doesn't exist, creating
> lu not valid - can't read PMAGIC
> lu not valid - can't read PMAGIC
> /usr/local/etc/dreo.pine.lu is not valid, rebuilding
> build_ondisk: rename_file(/var/tmp/a2008540,/usr/local/etc/dreo.pine.lu):
>  Cross-device link
> build_ondisk: io_err: Cross-device link
> failed in build_ondisk_hash_from_abook
> adrbk_open: copy_file failed
> adrbk_open: bailing: filenames=/usr/local/etc/dreo.pine
>  /usr/local/etc/dreo.pine /usr/local/etc/dreo.pine /var/tmp/a1008540
>  /usr/local/etc/dreo.pine.lu /usr/local/etc/dreo.pine.lu /var/tmp/a2008540
>  fp=open fp_hash=NULL
> Error opening address book DREO: Cross-device link
> 
> --------------------
> Claude Marinier, Information Technology Group    claude.marinier@dreo.dnd.ca 
> Defence Research Establishment Ottawa (DREO)    (613) 998-4901  FAX 998-2675
> 3701 Carling Avenue, Ottawa, Ontario  K1A 0Z4         http://www.dreo.dnd.ca
> 
>