Skip to content

Commit

Permalink
remove annoying bailout due to bash completion bug (Closes comotion#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
comotion committed Oct 19, 2012
1 parent 420275a commit 1bdfbaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions security.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,9 @@ int initSecurity(int* max_mem_lock, int* memory_safe, int* ptrace_safe,
/* NOTE: no file must be opened before this test! */
canary = dup(0);
close(canary);
if (canary != 3)
if (canary < 3)
{
fprintf(stderr, "%s\n",
_("stdin, stdout and/or stderr are invalid."));
fprintf(stderr, "%s\n", _("stdin, stdout and/or stderr are invalid."));
return 1;
}

Expand Down

0 comments on commit 1bdfbaa

Please sign in to comment.