shithub: npe

Download patch

ref: c2270c64007798c5fa908bd81a8d297ddea899d7
parent: 262246a2bb9c9c820fc6ff1b9b9980d4e7573347
author: Noam Preil <noam@pixelhero.dev>
date: Fri Dec 12 05:11:47 EST 2025

initialize dev and rdev fields

--- a/libnpe/stat.c
+++ b/libnpe/stat.c
@@ -14,6 +14,8 @@
 	}
 
 	memset(buf, 0, sizeof(*buf));
+	buf->st_dev = d->type;
+	buf->st_rdev = d->dev;
 	buf->st_size = d->length;
 	buf->st_mtime = d->mtime;
 	buf->st_atime = d->atime;
--