You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. --- bandwidthd-2.0.1/bandwidthd.c.orig 2008-05-09 10:06:37.000000000 -0500
  2. +++ bandwidthd-2.0.1/bandwidthd.c 2008-05-09 10:32:54.000000000 -0500
  3. @@ -255,22 +255,22 @@
  4. openlog("bandwidthd", LOG_CONS, LOG_DAEMON);
  5. - if (stat("./etc/bandwidthd.conf", &StatBuf))
  6. + if (stat("/etc/bandwidthd.conf", &StatBuf))
  7. {
  8. chdir(INSTALL_DIR);
  9. - if (stat("./etc/bandwidthd.conf", &StatBuf))
  10. + if (stat("/etc/bandwidthd.conf", &StatBuf))
  11. {
  12. - printf("Cannot find ./etc/bandwidthd.conf or %s/etc/bandwidthd.conf\n", INSTALL_DIR);
  13. - syslog(LOG_ERR, "Cannot find ./etc/bandwidthd.conf or %s/etc/bandwidthd.conf", INSTALL_DIR);
  14. + printf("Cannot find /etc/bandwidthd.conf or %s/etc/bandwidthd.conf\n", INSTALL_DIR);
  15. + syslog(LOG_ERR, "Cannot find /etc/bandwidthd.conf or %s/etc/bandwidthd.conf", INSTALL_DIR);
  16. exit(1);
  17. }
  18. }
  19. - bdconfig_in = fopen("./etc/bandwidthd.conf", "rt");
  20. + bdconfig_in = fopen("/etc/bandwidthd.conf", "rt");
  21. if (!bdconfig_in)
  22. {
  23. syslog(LOG_ERR, "Cannot open bandwidthd.conf");
  24. - printf("Cannot open ./etc/bandwidthd.conf\n");
  25. + printf("Cannot open /etc/bandwidthd.conf\n");
  26. exit(1);
  27. }
  28. bdconfig_parse();