diff options
author | orchidman <lesibel@free.fr> | 2012-04-19 15:06:37 +0200 |
---|---|---|
committer | orchidman <lesibel@free.fr> | 2012-04-19 15:06:37 +0200 |
commit | 9e976a2c014027671eccd80844ee229a9718da37 (patch) | |
tree | 88621c6a32351477239f6059fc9b5f8ec6fcbd07 /afpfs-ng/10-fix-errno.patch | |
parent | 8d21ad4fc1c5a39e5ba5cd87ae6da570c4c511a6 (diff) | |
download | nutyx-extra-9e976a2c014027671eccd80844ee229a9718da37.tar.gz nutyx-extra-9e976a2c014027671eccd80844ee229a9718da37.tar.bz2 nutyx-extra-9e976a2c014027671eccd80844ee229a9718da37.tar.xz nutyx-extra-9e976a2c014027671eccd80844ee229a9718da37.zip |
afpfs-ng 0.8.3-1 ajout port
Diffstat (limited to 'afpfs-ng/10-fix-errno.patch')
-rw-r--r-- | afpfs-ng/10-fix-errno.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/afpfs-ng/10-fix-errno.patch b/afpfs-ng/10-fix-errno.patch new file mode 100644 index 000000000..eef5891df --- /dev/null +++ b/afpfs-ng/10-fix-errno.patch @@ -0,0 +1,23 @@ +--- afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:42:42.000000000 +0200 ++++ afpfs-ng-0.8.1/lib/afp.c 2011-09-04 19:39:44.000000000 +0200 +@@ -19,7 +19,6 @@ + #include <sys/time.h> + #include <sys/types.h> + #include <sys/socket.h> +-#include <errno.h> + + #include <afpfs-ng/afp_protocol.h> + #include <afpfs-ng/libafpclient.h> +--- afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:42:42.000000000 +0200 ++++ afpfs-ng-0.8.1/lib/afp_url.c 2011-09-04 19:40:27.000000000 +0200 +@@ -21,7 +21,9 @@ + + static int check_port(char * port) + { +- long long ret = strtol(port,NULL,10); ++ long long ret = 0; ++ errno = 0; ++ ret = strtol(port,NULL,10); + if ((ret<0) || (ret>32767)) return -1; + if (errno) { + printf("port error\n");
\ No newline at end of file |