From ca558a4bed9041468510e4c8a0f40bb75ff68ea6 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Mon, 22 Apr 2002 03:19:52 +0000 Subject: [PATCH] Weird. A scalar at the end of the list was folded into the middle of the list. I don't know why. --- perl/Fuse.xs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.30.2