Subject: Pine and "cross-device link" error
To: None <netbsd-help@netbsd.org>
From: Claude Marinier <marinier@dreo.dnd.ca>
List: netbsd-help
Date: 01/18/1999 09:18:47
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