Inode::from_row assigns gid from uid column instead of gid #5

Open
opened 2026-05-12 11:57:11 +00:00 by salmaelsoly · 1 comment
Member

In Inode::from_row, the gid field reads from the uid column instead of gid. This is a copy-paste error from the uid field above it.

File: myfs-core/src/fungi/meta.rs:104

gid: row.get("uid"),  // BUG: should be row.get("gid")

Every inode group owner will be identical to its user owner, completely breaking group permission semantics.

Severity: medium | Confidence: high

In Inode::from_row, the gid field reads from the uid column instead of gid. This is a copy-paste error from the uid field above it. **File:** myfs-core/src/fungi/meta.rs:104 ```rust gid: row.get("uid"), // BUG: should be row.get("gid") ``` Every inode group owner will be identical to its user owner, completely breaking group permission semantics. Severity: medium | Confidence: high
Author
Member

Classification: unclear -- referenced code does not exist in this repository

The described bug (gid: row.get("uid") instead of row.get("gid")) is a clearly documented copy-paste error, but the referenced file myfs-core/src/fungi/meta.rs does not exist in the geomind_code/geoip repository. This project is a MaxMind GeoIP lookup service (Axum HTTP server, no FUSE or filesystem code). The issue was likely filed against the wrong repository.

Severity: medium | Confidence: high (bug is real, but applies to a different codebase)

> Classification: unclear -- referenced code does not exist in this repository The described bug (gid: row.get("uid") instead of row.get("gid")) is a clearly documented copy-paste error, but the referenced file myfs-core/src/fungi/meta.rs does not exist in the geomind_code/geoip repository. This project is a MaxMind GeoIP lookup service (Axum HTTP server, no FUSE or filesystem code). The issue was likely filed against the wrong repository. Severity: medium | Confidence: high (bug is real, but applies to a different codebase)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/geoip#5
No description provided.