Skip to content

Commit

Permalink
Removing the "must be root" part
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Nov 25, 2024
1 parent 7ae4a55 commit 493718b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,6 @@ c4gh_destroy(void)
int main(int argc, char *argv[])
{

#if MUST_BE_ROOT
/* if we're really root and aren't running setuid */
const uid_t ruid = getuid();
const uid_t euid = geteuid();
if( (uid_t) 0 != ruid || ruid != euid ){
fprintf(stderr, "%s can only be run as root\n", argv[0]);
exit(1);
}
#endif

int res = 0;
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
struct fuse *fuse;
Expand Down

0 comments on commit 493718b

Please sign in to comment.