You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an empty crate with fuse3 (either v5.0 or the latest from git) and the tokio-runtime features
Build
Error:
error[E0425]: cannot find function `getuid` in module `unistd`
--> /home/patrick/.cargo/git/checkouts/fuse3-ea5edbf459049c77/0466328/src/mount_options.rs:217:52
|
217 | self.uid.unwrap_or_else(|| unistd::getuid().as_raw())
| ^^^^^^
|
::: /home/patrick/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.25.0/src/unistd.rs:662:1
|
662 | pub fn getcwd() -> Result<PathBuf> {
| ---------------------------------- similarly named function `getcwd` defined here
|
help: a function with a similar name exists
|
217 | self.uid.unwrap_or_else(|| unistd::getcwd().as_raw())
| ~~~~~~
help: consider importing this function
|
1 | use libc::getuid;
|
help: if you import `getuid`, refer to it directly
|
217 - self.uid.unwrap_or_else(|| unistd::getuid().as_raw())
217 + self.uid.unwrap_or_else(|| getuid().as_raw())
|
error[E0425]: cannot find function `getgid` in module `unistd`
--> /home/patrick/.cargo/git/checkouts/fuse3-ea5edbf459049c77/0466328/src/mount_options.rs:221:52
|
221 | self.gid.unwrap_or_else(|| unistd::getgid().as_raw())
| ^^^^^^
|
::: /home/patrick/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.25.0/src/unistd.rs:662:1
|
662 | pub fn getcwd() -> Result<PathBuf> {
| ---------------------------------- similarly named function `getcwd` defined here
|
help: a function with a similar name exists
|
221 | self.gid.unwrap_or_else(|| unistd::getcwd().as_raw())
| ~~~~~~
help: consider importing this function
|
1 | use libc::getgid;
|
help: if you import `getgid`, refer to it directly
|
221 - self.gid.unwrap_or_else(|| unistd::getgid().as_raw())
221 + self.gid.unwrap_or_else(|| getgid().as_raw())
|
For more information about this error, try `rustc --explain E0425`.
error: could not compile `fuse3` due to 2 previous errors
The text was updated successfully, but these errors were encountered:
the problem should be getuid need user feature in nix, however fuse3 doesn't enable this feature
i will fix it in a few days, or maybe you can create a PR to enable user feature?
Reproduction steps:
fuse3
(either v5.0 or the latest from git) and thetokio-runtime
featuresError:
The text was updated successfully, but these errors were encountered: