Giter Site home page Giter Site logo

Comments (4)

jhunt avatar jhunt commented on June 20, 2024 1

That's an excellent use case, that I'd not previously thought of!

The issue probably stems from the fact that if you give bash a glob that doesn't match anything, it will give back the glob as the result: i.e. "echo *.enoent" will echo a literal *.enoent. In the context of a bash for loop, this is a valid token, so it loops once and the named-checkzone gets exec'd with a bad (non-existent) zone file.

I think this is as simple as a set -o nullglob, to skip the loop body altogether. I'm testing that locally in my lab right now.

from bind9-boshrelease.

jhunt avatar jhunt commented on June 20, 2024

Yes, as I suspected:

[Thu Aug 13 15:25:02 UTC 2020] checking named configuration...
[Thu Aug 13 15:25:02 UTC 2020] named configuration OK

[Thu Aug 13 15:25:02 UTC 2020] checking zone '*' (in /var/vcap/sys/run/named/data/*.db)...
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-J filename] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-r (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename

It's treating a literal * as the filename to check.

from bind9-boshrelease.

jhunt avatar jhunt commented on June 20, 2024

Check out v1.3.0 which has this fix in it.

https://github.com/cloudfoundry-community/bind9-boshrelease/releases/tag/v1.3.0

from bind9-boshrelease.

lrstanley avatar lrstanley commented on June 20, 2024

Tested, and working. Thanks!

from bind9-boshrelease.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.