*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 7 Jul 2005 07:07:32 +0000 (07:07 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 7 Jul 2005 07:07:32 +0000 (07:07 +0000)
tests/js-test/js/httpd/httpd.js

index 5d34524..798f000 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $ */
+/* $Id: httpd.js,v 1.23 2005/07/07 07:07:32 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -83,7 +83,7 @@ eval(file_read('root.js'));           /* Root object for virtual chroot(2) */
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.23 2005/07/07 07:07:32 mmondor Exp $';
 
 
 
@@ -721,7 +721,7 @@ FD.prototype.httpRespond = function()
                 * Is file a directory?  If so, attempt to fallback to
                 * index.html inside it.
                 */
-               if (((st.st_mode & FD.S_IFMT) & FD.S_IFDIR) != 0) {
+               if ((st.st_mode & FD.S_IFDIR) != 0) {
                        fd.close();
                        this.http_path += '/index.html';
                        index = true;
@@ -734,7 +734,7 @@ FD.prototype.httpRespond = function()
        /*
         * Only continue if file is a regular file
         */
-       if (((st.st_mode & FD.S_IFMT) & FD.S_IFREG) == 0) {
+       if ((st.st_mode & FD.S_IFREG) == 0) {
                fd.close();
                http_error(this, 403, 'Permission Denied',
                    'You do not have the permission to access this resource.');