summaryrefslogtreecommitdiff
path: root/news/pan/patches/patch-ab
blob: f380bd2be5e85680da87cfead43046bf502c6092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ab,v 1.2 2001/10/15 07:24:38 rh Exp $

--- pan/base/util-file.c.orig	Thu Jul 19 00:26:32 2001
+++ pan/base/util-file.c
@@ -208,12 +208,14 @@
 
 				if (!g_file_test (buf, G_FILE_TEST_ISDIR))
 				{
+					*(out-1) = '\0';
 					if (mkdir (buf, S_IRUSR | S_IWUSR | S_IXUSR))
 					{
 						log_add_va (LOG_ERROR, _("Couldn't create directory `%s': %s"),
 						                       buf, g_strerror (errno));
 						break;
 					}
+					*(out-1) = G_DIR_SEPARATOR;
 				}
 			}