On Sun, Dec 06, 2009 at 08:09:18PM +0100, Frans Pop wrote:
> Hmmm. is_selinux_enabled() in src/enabled.c has the following code which is 
> executed if selinux_mnt is NULL:
>         /* Drop back to detecting it the long way. */
>         fp = fopen("/proc/filesystems", "r");
>         if (!fp)
>                 return -1;
> 
> So, is_selinux_enabled() returns -1 here, which makes the test in sed true:
> ./sed-4.2.1/sed/execute.c:748:      if (is_selinux_enabled ())

If -1 is a valid response, the is_selinux_enabled man page should be corrected.

> Should sed maybe explicitly test for a value of 1 (or > 0) instead?

Is -1 meant to be an "I don't know" response?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to