Redundant comparison rootshell_mode == 1 (0 == 1) is always false
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=1177&WGID=543176
Change-Id: Ie02831e0e1ec5211ad4c2336eb0ee0cd048765f9
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
}
int should_drop_privileges() {
- if (rootshell_mode == 1) { // if root, then don't drop
- return 0;
- }
- return 1;
+ return !rootshell_mode; // if root, then don't drop
}
#include <gio/gio.h>