[Snort-devel] [PATCH] parser.c

Peter Moore peter at ...799...
Sun Nov 4 23:35:02 EST 2001


for BeOS BONE.
BeOS doesn't have a chroot function defined because the default user is 
effectively root.
this will change in the future.

snort-1.8.2->diff -u parser.c.orig parser.c
--- parser.c.orig       Mon Oct 29 13:23:02 2001
+++ parser.c    Mon Nov  5 02:41:21 2001
@@ -494,8 +494,10 @@
         {
             if(chdir(chrootdir) < 0)
                 FatalError("Can not chdir to \"%s\"\n", chrootdir);
+#ifndef BEOS
             if(chroot(chrootdir) < 0)
                 FatalError("Can not chroot to %s\n", chrootdir);
+#endif /* !BEOS */
             if(chdir("/") < 0)
                 FatalError("Can not chdir to \"/\"\n");
    





More information about the Snort-devel mailing list