You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dean Karres <ka...@southwind.net> on 1997/08/09 18:30:02 UTC

config/984: followup to PR#835

>Number:         984
>Category:       config
>Synopsis:       followup to PR#835
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Sat Aug  9 09:30:01 1997
>Originator:     karres@southwind.net
>Organization:
apache
>Release:        1.2.1
>Environment:
BSDOS 2.1
>Description:
If the "LockFile" directive is not set and no "logs" dir exists in
ServerRoot then the server dies with the messages:

    open: No such file or directory
    Cannot open lock file

I request that the inaccessable file name be printed out for more clarity.
To that end, I submit the following trivial patch to "http_main.c"

*** http_main.c Sun Jun 29 13:08:37 1997
--- http_main.c.new     Sat Aug  9 11:14:28 1997
***************
*** 268,274 ****
      if (lock_fd == -1)
      {
        perror ("open");
!       fprintf (stderr, "Cannot open lock file\n");
        exit (1);
      }
      unlink(lock_fname);
--- 268,274 ----
      if (lock_fd == -1)
      {
        perror ("open");
!       fprintf (stderr, "Cannot open lock file: %s\n", lock_fname);
        exit (1);
      }
      unlink(lock_fname);
>How-To-Repeat:

>Fix:
see the patch abov
>Audit-Trail:
>Unformatted: