Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 243206
Collapse All | Expand All

(-)gthumb-2.10.10.orig/libgthumb/file-utils.c (-5 / +11 lines)
Lines 2459-2470 Link Here
2459
        template = g_strconcat (best_folder, "/.gth-XXXXXX", NULL);
2459
        template = g_strconcat (best_folder, "/.gth-XXXXXX", NULL);
2460
        g_free (best_folder);
2460
        g_free (best_folder);
2461
        
2461
        
2462
        result = mkdtemp (template);
2462
	/* mkdtemp not in Solaris 10 */
2463
	{
2464
	   int status;
2463
2465
2464
        if ((result == NULL) || (*result == '\0')) {
2466
	   result = mktemp(template);
2465
                g_free (template);
2467
	   status = mkdir (result,0700);
2466
                result = NULL;
2468
	    
2467
        }
2469
	   if ((result == NULL) || (*result == '\0') || (status != 0)) {
2470
	                   g_free (template);
2471
	          result = NULL;
2472
	   }
2473
	}
2468
2474
2469
        return result;
2475
        return result;
2470
}
2476
}

Return to bug 243206