updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / afpfs-ng / 10-fix-errno.patch
blobff7ce44bdb6b4bd172be329158131e4f804c80eb
1 --- afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:42:42.000000000 +0200
2 +++ afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:39:44.000000000 +0200
3 @@ -19,7 +19,6 @@
4 #include <sys/time.h>
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 -#include <errno.h>
9 #include <afpfs-ng/afp_protocol.h>
10 #include <afpfs-ng/libafpclient.h>
11 --- afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:42:42.000000000 +0200
12 +++ afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:40:27.000000000 +0200
13 @@ -21,7 +21,9 @@
15 static int check_port(char * port)
17 - long long ret = strtol(port,NULL,10);
18 + long long ret = 0;
19 + errno = 0;
20 + ret = strtol(port,NULL,10);
21 if ((ret<0) || (ret>32767)) return -1;
22 if (errno) {
23 printf("port error\n");