blob: dbd8a30fb1c7ef9df47ee9ace132009ed8491b25 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
diff -Nru siefs-0.5.orig/siefs/Makefile.am siefs-0.5/siefs/Makefile.am
--- siefs-0.5.orig/siefs/Makefile.am 2005-04-05 14:36:28.000000000 +0000
+++ siefs-0.5/siefs/Makefile.am 2009-03-03 20:59:05.000000000 +0000
@@ -9,8 +9,8 @@
slink_SOURCES = slink.c obex.c obex.h transport.c transport.h comm.c comm.h \
crcmodel.c crcmodel.h
-LDADD = $(fuseinst)/lib/libfuse.a -lpthread
+LDADD = -lfuse -lpthread
install-exec-hook:
- -rm -f /sbin/mount.siefs
- -ln -s $(DESTDIR)$(bindir)/siefs /sbin/mount.siefs
+ -mkdir $(DESTDIR)/sbin/
+ -ln -s ..$(bindir)/siefs $(DESTDIR)/sbin/mount.siefs
diff -Nru siefs-0.5.orig/siefs/charset.c siefs-0.5/siefs/charset.c
--- siefs-0.5.orig/siefs/charset.c 2005-04-05 17:15:47.000000000 +0300
+++ siefs-0.5/siefs/charset.c 2007-05-23 14:13:19.000000000 +0300
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff -Nru siefs-0.5.orig/siefs/comm.c siefs-0.5/siefs/comm.c
--- siefs-0.5.orig/siefs/comm.c 2005-04-05 02:53:38.000000000 +0300
+++ siefs-0.5/siefs/comm.c 2007-05-23 14:12:32.000000000 +0300
@@ -15,6 +15,7 @@
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include "comm.h"
@@ -114,7 +115,7 @@
if (fd < 0) return -1;
h->fd = fd;
- bzero(&tio, sizeof(tio));
+ memset(&tio, 0, sizeof(tio));
f = commflags(h->speed);
if (f == -1) return -1;
tio.c_cflag = f;
diff -Nru siefs-0.5.orig/siefs/transport.c siefs-0.5/siefs/transport.c
--- siefs-0.5.orig/siefs/transport.c 2005-04-05 18:06:44.000000000 +0300
+++ siefs-0.5/siefs/transport.c 2007-05-23 14:13:00.000000000 +0300
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include "comm.h"
#include "crcmodel.h"
|