Skip to content

Commit 56c17f2

Browse files
committed
Treat MS_NOUSER as unsigned
Account for [1]. [1]: bminor/glibc@3263675
1 parent 68cd67e commit 56c17f2

File tree

1 file changed

+2
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+2
-1
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2129,7 +2129,8 @@ pub const _PC_ALLOC_SIZE_MIN: c_int = 18;
21292129
pub const _PC_SYMLINK_MAX: c_int = 19;
21302130
pub const _PC_2_SYMLINKS: c_int = 20;
21312131

2132-
pub const MS_NOUSER: c_ulong = 0xffffffff80000000;
2132+
// FIXME: should this be an int? The suffix is `U` not `UL`.
2133+
pub const MS_NOUSER: c_ulong = 1 << 31;
21332134

21342135
pub const _SC_ARG_MAX: c_int = 0;
21352136
pub const _SC_CHILD_MAX: c_int = 1;

0 commit comments

Comments
 (0)