Weird. A scalar at the end of the list was folded into the middle of the
authorMark Glines <mark@glines.org>
Mon, 22 Apr 2002 03:19:52 +0000 (03:19 +0000)
committerMark Glines <mark@glines.org>
Mon, 22 Apr 2002 03:19:52 +0000 (03:19 +0000)
list.  I don't know why.

perl/Fuse.xs

index 7260e302279e8b1190c2e303ffb8049751c27dd5..69d49f05ac4ad22136365526f747cb4ec0c6d4d1 100644 (file)
@@ -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;
        }