Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 FuseFS ruby gem 在 ruby 1.8 中创建自定义文件系统。唯一的问题是,当我在自定义文件系统类的 write_to 方法中时,FuseFS.uid 方法只给我 0,而它应该返回访问用户的有效 uid。在其他方法中,它可以正常工作并返回例如 4832(用户 ID)。为什么会这样,我该如何改变这种行为?