Re: persistence ?



On Mon, 21 Apr 2003, Alan Horkan wrote:

Sorry to ask this on the list, if i weren't on 56k dialup i would
research more extensively.

My working RedHat machine does not have a net connection so this is
really awkward, please bear with me, I have to download and then bring
the files home with me.  i downloaded one of Cyrilles CVS tarballs from
April 19 and compiled it succesfully on RedHat.

It runs but dies if i try and create a new document.

On the
command line I get a message about not being able to stat
./dia/persistence

Strangely, it doesn't complain when I have no persistence file, or even no
dia dir.  But try this patch:

Index: app/persistence.c
===================================================================
RCS file: /cvs/gnome/dia/app/persistence.c,v
retrieving revision 1.3
diff -r1.3 persistence.c
26a27,29
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
104a108,110
  struct stat statbuf;

  if (stat(filename, &statbuf) == -1) return;

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]