Subject: Re: pkg/36141 (graphics/gthumb Solaris10 amd64 gcc)
To: None <solaris-pkg-people@NetBSD.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 04/12/2007 14:20:02
The following reply was made to PR pkg/36141; it has been noted by GNATS.

From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org,
	pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org, snj@NetBSD.org,
	dauphin@enst.fr, gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/36141 (graphics/gthumb Solaris10 amd64 gcc)
Date: Thu, 12 Apr 2007 16:15:57 +0200 (CEST)

 > From: snj@NetBSD.org
 > To: solaris-pkg-people@NetBSD.org, pkg-manager@NetBSD.org, 
 pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org, snj@NetBSD.org, "Gilles Dauphin" 
 <dauphin@enst.fr>
 > Subject: Re: pkg/36141 (graphics/gthumb Solaris10 amd64 gcc)
 > X-Gnats-Was-Stupid: no
 > Cc: 
 > Date: Thu, 12 Apr 2007 14:07:37 +0000 (UTC)
 > 
 > Synopsis: graphics/gthumb Solaris10 amd64 gcc
 > 
 > Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
 > Responsible-Changed-By: snj@netbsd.org
 > Responsible-Changed-When: Thu, 12 Apr 2007 14:07:36 +0000
 > Responsible-Changed-Why:
 > Solaris problem.
 
 Is this patch correct?
 
 --- libgthumb/file-utils.c.orig Tue Apr 10 09:50:23 2007
 +++ libgthumb/file-utils.c      Thu Apr 12 16:08:01 2007
 @@ -2209,11 +2209,13 @@
  {
         char *tmppath;
         char *retval;
 +       int status;
  
         tmppath = (char*) g_build_filename (g_get_tmp_dir (), "gthumb.XXXXXX", 
 NULL);
  
 -       retval = mkdtemp (tmppath);
 -       if (retval == NULL)
 +       retval = mktemp(tmppath);
 +       status = mkdir (retval,0700);
 +       if (status != 0)
                 g_free(tmppath);
  
         return retval;