GNOME Bugzilla – Bug 542026
Change permissions not working on OpenBSD
Last modified: 2011-05-19 16:30:38 UTC
Please describe the problem: Trying to change the permissions of a file/folder with nautilus on (at least) OpenBSD, results in errors. Not even root is able to change the permissions. Whilst tracing the kernel, it turned out that the chmod() syscall failed, because of invalid arguments to it. Attached patch fixes the problem on OpenBSD, but I'm not sure if it's desired for other platforms as well. Maybe #ifdef'ing it? Steps to reproduce: 1. Start nautilus on OpenBSD 2. Try to change permissions of a file/folder 3. Changing permissions fails. Actual results: Permissions aren't updated, because of a failing syscall. Expected results: Permissions are correctly updated. Does this happen every time? joah. Other information: Patch attached, as present in OpenBSD ports.
Created attachment 114175 [details] [review] proposed fix
If I cared I'd ask you to make a GNOME_VFS_UNIX_PERMS_MASK or something, but anyways, it's a long-deprecated component here, and your patch makes sense to me.