After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542026 - Change permissions not working on OpenBSD
Change permissions not working on OpenBSD
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.20.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-08 11:35 UTC by Jasper Lievisse Adriaanse
Modified: 2011-05-19 16:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
proposed fix (865 bytes, patch)
2008-07-08 11:38 UTC, Jasper Lievisse Adriaanse
committed Details | Review

Description Jasper Lievisse Adriaanse 2008-07-08 11:35:30 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.
Comment 1 Jasper Lievisse Adriaanse 2008-07-08 11:38:33 UTC
Created attachment 114175 [details] [review]
proposed fix
Comment 2 Colin Walters 2011-05-19 16:30:23 UTC
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.