From: Mark Glines Date: Mon, 22 Apr 2002 03:19:52 +0000 (+0000) Subject: Weird. A scalar at the end of the list was folded into the middle of the X-Git-Tag: debian_version_1_0-1~36 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ca558a4bed9041468510e4c8a0f40bb75ff68ea6;p=qemu-gpiodev%2Flibfuse.git Weird. A scalar at the end of the list was folded into the middle of the list. I don't know why. --- diff --git a/perl/Fuse.xs b/perl/Fuse.xs index 7260e30..69d49f0 100644 --- a/perl/Fuse.xs +++ b/perl/Fuse.xs @@ -32,18 +32,21 @@ int _PLfuse_getattr(const char *file, struct stat *result) { else rv = -ENOENT; } else { - result->st_blocks = POPi; result->st_blksize = POPi; result->st_ctime = POPi; result->st_mtime = POPi; result->st_atime = POPi; + /* What the HELL? Perl says the blockcount is the last argument. + * Everything else says the blockcount is the last argument. So why + * was it folded into the middle of the list? */ + result->st_blocks = POPi; result->st_size = POPi; result->st_rdev = POPi; result->st_gid = POPi; result->st_uid = POPi; result->st_nlink = POPi; result->st_mode = POPi; - /* result->st_ino = */ POPi; + /*result->st_ino =*/ POPi; result->st_dev = POPi; rv = 0; }