duckduckgo / zeroclickinfo-goodies

DuckDuckGo Instant Answers based on Perl & JavaScript
https://duckduckhack.com/
Other
982 stars 1.76k forks source link

UnixPermissions: Correct UNIX setuid/setgid permission bits mixup #4775

Closed dylngg closed 2 years ago

dylngg commented 3 years ago

Description of new Instant Answer, or changes

This PR fixes a bug in the Unix Permissions IA that caused setuid and setgid sticky bits to be mixed up. The 2 bit is for setting setgid, 4 for setuid. The IA incorrectly interpreted the opposite.

https://www.gnu.org/software/libc/manual/html_node/Permission-Bits.html

Related Issues and Discussions

Fixes #4714

People to notify


Instant Answer Page: https://duck.co/ia/view/unix_permissions