]> git.pld-linux.org Git - packages/apache1-mod_bandwidth.git/commitdiff
- puth full paths and fix stat call
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 12 Feb 2004 23:54:58 +0000 (23:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mod_bandwidth.c -> 1.3

mod_bandwidth.c

index 29dafdd31bfc18994086cb467fc64fec3f5f2d63..4fea446e32f7a3425ffb795ac2bb34c32bdcbf27 100644 (file)
  * #define LINK_DIR    "/tmp/apachebw/link"
  */
 
-#define MASTER_DIR  "master"
-#define LINK_DIR    "link"
+#define MASTER_DIR  "/var/run/apache-mod_bandwidth/master"
+#define LINK_DIR    "/var/run/apache-mod_bandwidth/link"
 
 /* Define BWDEBUG for debuging purpose only ! */
 /* #define BWDEBUG */
@@ -835,7 +835,7 @@ static int handle_bw(request_rec *r) {
    * directory.
    */
 
-  if (stat(directory, &fdata) < -1) {
+  if (stat(directory, &fdata) < 0) {
      /* Dunno if this may happen... but well... */
      return DECLINED;
   }
This page took 0.069815 seconds and 4 git commands to generate.