Hello community,

here is the log from the commit of package xfig for openSUSE:11.4
checked in at Fri Jun 17 16:39:48 CEST 2011.



--------
--- old-versions/11.4/all/xfig/xfig.changes     2010-12-03 15:26:23.000000000 
+0100
+++ 11.4/xfig/xfig.changes      2011-06-17 15:11:03.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Jun 17 15:07:40 CEST 2011 - wer...@suse.de
+
+- Fix broken append mode for eps/ps import (bnc#696368)
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.4/all/xfig
Destination is old-versions/11.4/UPDATES/all/xfig
calling whatdependson for 11.4-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfig.spec ++++++
--- /var/tmp/diff_new_pack.52NV3l/_old  2011-06-17 16:39:02.000000000 +0200
+++ /var/tmp/diff_new_pack.52NV3l/_new  2011-06-17 16:39:02.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package xfig (Version 3.2.5b)
+# spec file for package xfig
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,7 +31,7 @@
 Requires:       transfig netpbm ghostscript-fonts-std
 AutoReqProv:    on
 Version:        3.2.5b
-Release:        10
+Release:        14.<RELEASE15>
 Summary:        Facility for Interactive Generation of Figures under the X 
Window System
 Url:            http://www.xfig.org/
 Source:         xfig.%{version}.tar.bz2

++++++ xfig.3.2.5b-preview.dif ++++++
--- /var/tmp/diff_new_pack.52NV3l/_old  2011-06-17 16:39:02.000000000 +0200
+++ /var/tmp/diff_new_pack.52NV3l/_new  2011-06-17 16:39:02.000000000 +0200
@@ -1,12 +1,13 @@
 --- f_readeps.c
-+++ f_readeps.c        2010-12-01 14:26:05.884195851 +0000
++++ f_readeps.c        2011-06-17 12:46:08.519926308 +0000
 @@ -252,11 +252,12 @@ bitmap_from_gs(file, filetype, pic, urx,
  {
      char        buf[300];
      FILE       *tmpfp, *pixfile, *gsfile;
 -    char       *psnam, *driver;
+-    int         status, wid, ht, nbitmap, fd;
 +    char       *driver;
-     int         status, wid, ht, nbitmap, fd;
++    int         status, wid, ht, nbitmap, fd, len;
      char        tmpfile[PATH_MAX],
                pixnam[PATH_MAX],
                errnam[PATH_MAX],
@@ -14,7 +15,7 @@
                gscom[2 * PATH_MAX];
  
      wid = urx - llx;
-@@ -307,19 +308,22 @@ bitmap_from_gs(file, filetype, pic, urx,
+@@ -307,19 +308,26 @@ bitmap_from_gs(file, filetype, pic, urx,
        /* for color, use pcx */
        driver = "pcx256";
      }
@@ -31,7 +32,7 @@
 +    if (!realpath(tmpfile, psnam)) {
 +      file_msg("Cannot canonicalize %s: %s\n", tmpfile, strerror(errno));
 +      return False;
-     }
++    }
 +    /* From Language.htm of ghostscript 9.00 and higher:
 +     * If Ghostscript is started with -dNOSAFER or -dDELAYSAFER, this 
operator can
 +     * be used to enter SAFER mode with the current set of PermitFile... user
@@ -40,11 +41,16 @@
 +     * for file Reading, Writing and/or Control can use this operator to 
perform
 +     * the locking needed to enter SAFER mode.
 +     */
-     sprintf(&gscom[strlen(gscom)],
--          "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 
2>&1",
--          appres.ghostscript, driver, wid, ht, pixnam, errnam);
++    len = snprintf(gscom, sizeof(gscom) - 1,
 +          "%s -r72x72 -sDEVICE=%s -g%dx%d -dDELAYSAFER -sOutputFile=%s -c 
'<</PermitFileReading[(%s)]>> setuserparams .locksafe' -q - > %s 2>&1",
 +          appres.ghostscript, driver, wid, ht, pixnam, psnam, errnam);
++    if (len >= sizeof(gscom) - 1 || len < 0) {
++      file_msg("Cannot write to buffer, file name to large: %s\n", psnam);
++      return False;
+     }
+-    sprintf(&gscom[strlen(gscom)],
+-          "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 
2>&1",
+-          appres.ghostscript, driver, wid, ht, pixnam, errnam);
      if (appres.DEBUG)
        fprintf(stderr,"calling: %s\n",gscom);
      if ((gsfile = popen(gscom, "w")) == 0) {


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to