Commit b49c753e authored by gregor herrmann's avatar gregor herrmann

Imported Upstream version 4.12

parent 69c9139b
......@@ -170,7 +170,7 @@ use common::sense;
use base 'Exporter';
BEGIN {
our $VERSION = '4.11';
our $VERSION = '4.12';
our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close
aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx
......
......@@ -1441,8 +1441,8 @@ aio_link (SV8 *oldpath, SV8 *newpath, SV *callback=&PL_sv_undef)
aio_rename = EIO_RENAME
PPCODE:
{
dREQ;
eio_wd wd2 = 0;
dREQ;
req->type = ix;
req_set_path1 (req, oldpath);
......
......@@ -9,6 +9,11 @@ TODO: aio_mincore?
TODO: getxattr etc.?
TODO: F_DUPFD_CLOEXEC
4.12 Fri Dec 30 08:51:25 CET 2011
- realpath would return a random value if the name was too long,
instead of -1.
- port to c89.
4.11 Mon Oct 10 00:24:11 CEST 2011
- libeio didn't compile on !linux (Paul Howarth).
......
......@@ -37,5 +37,5 @@
}
},
"release_status" : "stable",
"version" : "4.11"
"version" : "4.12"
}
......@@ -19,4 +19,4 @@ no_index:
- inc
requires:
common::sense: 0
version: 4.11
version: 4.12
......@@ -1489,7 +1489,7 @@ eio__realpath (struct tmpbuf *tmpbuf, eio_wd wd, const char *path)
errno = ENAMETOOLONG;
if (res + 1 + len + 1 >= tmp1)
return;
return -1;
/* copy one component */
*res = '/';
......@@ -1968,7 +1968,7 @@ eio__scandir (eio_req *req, etp_worker *self)
{
if (*name == '.') /* leading dots are likely directories, and, in any case, rare */
ent->score = 1;
else if (!strchr (name, '.')) /* absense of dots indicate likely dirs */
else if (!strchr (name, '.')) /* absence of dots indicate likely dirs */
ent->score = len <= 2 ? 4 - len : len <= 4 ? 4 : len <= 7 ? 5 : 6; /* shorter == more likely dir, but avoid too many classes */
}
else if (ent->type == EIO_DT_DIR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment