Skip to content

Commit

Permalink
cronolog: Rebuild with -DCHECK_ALL_PREFIX_DIRS
Browse files Browse the repository at this point in the history
Without this option, cronolog creates all required directory components
for the logfile only once, but doesn't recreate them as needed when a
new logfile is created in the same directory path as before. The
directory is "known to exist".

However, if the directory is removed by a third party, like a stupid
system administrator, cronolog just terminates when trying to open the
next logfile.

Add -DCHECK_ALL_PREFIX_DIRS to change that behaviour. With
CHECK_ALL_PREFIX_DIRS, all directories are created as needed whenever a
new logfile is created.
  • Loading branch information
donald committed Feb 8, 2018
1 parent af4b6e8 commit 6bf0fa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cronolog.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION cronolog-1.6.2-0
# BEE_VERSION cronolog-1.6.2-1

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)
Expand Down Expand Up @@ -53,9 +53,9 @@ SRCURL[0]="https://api.github.com/repos/fordmason/cronolog/tarball/8ea64c08afe54
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}
mee_configure() {
CFLAGS="-DCHECK_ALL_PREFIX_DIRS" bee_configure
}

#mee_build() {
# bee_build
Expand Down

0 comments on commit 6bf0fa2

Please sign in to comment.