[pbs-devel] [PATCH proxmox 2/2] sys: make fd::cwd crate-internal

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Aug 5 13:59:08 CEST 2024


it's not used by anything outside of proxmox-sys.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
alternatively, could also be inlined completely..

 proxmox-sys/src/fd.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-sys/src/fd.rs b/proxmox-sys/src/fd.rs
index 073dd08d..8d85bd2e 100644
--- a/proxmox-sys/src/fd.rs
+++ b/proxmox-sys/src/fd.rs
@@ -23,7 +23,7 @@ pub fn change_cloexec(fd: RawFd, on: bool) -> Result<(), anyhow::Error> {
     Ok(())
 }
 
-pub fn cwd() -> Result<OwnedFd, nix::Error> {
+pub(crate) fn cwd() -> Result<OwnedFd, nix::Error> {
     open(".", OFlag::O_DIRECTORY, stat::Mode::empty())
 }
 
-- 
2.39.2





More information about the pbs-devel mailing list