summaryrefslogtreecommitdiff
path: root/sysutils/fsviewer/patches/patch-ab
blob: c575dcdac7bf62bb78306aebe51c48071b7c982c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ab,v 1.5 2012/05/04 16:34:48 joerg Exp $

--- src/FSUtils.c.orig	2012-05-04 13:27:48.000000000 +0000
+++ src/FSUtils.c
@@ -66,6 +66,10 @@ typedef unsigned long ulong;
 #define DF_COMMAND "df -k"
 #endif
 
+#if defined(__DragonFly__)
+typedef unsigned long ulong;
+#endif
+
 const char *formatk(ulong k);
 
 static RContext *rContext = NULL;
@@ -1193,7 +1197,7 @@ FSGetDNDType(FileInfo *fileInfo)
     char *pathname = NULL;
 
     if(fileInfo == NULL)
-	return;
+	return -1;
     
     switch (fileInfo->fileType)
     {
@@ -1227,7 +1231,7 @@ FSExecCommand(char *path, char *execStr)
     {
 	char s[0xff];
 	
-	sprintf(s, _("Error changing to %s, \"%s\" cancelled."), path);
+	sprintf(s, _("Error changing to %s, \"%s\" cancelled."), path, execStr);
 	FSErrorDialog(_("Error File Operation"), s);
 	
 	return 1;