carme lighttpd broken
Elan Ruusamäe
glen at delfi.ee
Tue Sep 18 08:15:22 CEST 2018
on some other system, empty vhosts.d does not result such error as on carme:
wintersunset lighttpd/vhosts.d # rpm -q glibc lighttpd; ls -l
/etc/lighttpd/vhosts.d/
glibc-2.28-3.x86_64
lighttpd-1.4.49-3.x86_64
total 0
wintersunset lighttpd/vhosts.d # grep vhosts.d /etc/lighttpd/lighttpd.conf
include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo
\"include \\"$f\\"\" ; done"
wintersunset lighttpd/vhosts.d #
--
glen
On Mon, Sep 17, 2018 at 10:38 PM Elan Ruusamäe <glen at delfi.ee> wrote:
> On 17/09/2018 11:53, Arkadiusz Miśkiewicz wrote:
>
> > On 17/09/2018 00:24, Elan Ruusamäe wrote:
> >> poldek:/all-avail> !sh -c '/sbin/service lighttpd configtest'
> >> Checking Lighttpd Web Server
> >>
> configuration............................................................................................................................[
>
> >> FAIL ]
> >> 2018-09-17 00:22:54: (configfile.c.1451) pclose "for f in
> >> vhosts.d/*.conf ; do [ -f "$f" ] && echo "include \"$f\"" ;
> >> done"failed: Success
> >> 2018-09-17 00:22:54: (configfile.c.1289) source:
> >> /etc/lighttpd/lighttpd.conf line: 188 pos: 1 parser failed somehow
> >> near here: (EOL)
> >> poldek:/all-avail> !rpm -q lighttpd
> >> lighttpd-1.4.50-3.x86_64
> >> poldek:/all-avail>
> >
> > Seems it doesn't like empty vhosts.d dir. touch vhosts.d/nothing.conf
> > and it works
> >
> i wonder why it ever worked then
>
> $ (for f in vhosts.d/*.conf; do [ -f "$f" ] && echo "include \"$f\"" ;
> done); echo $?
> 1
> $ (for f in vhosts.d/*.conf; do [ -f "$f" ] && echo "include \"$f\"" ;
> done; exit 0); echo $?
> 0
>
> but "failed: Success" seems a bug. typically by calling strerror(errno)
> when errno is 0
>
More information about the pld-devel-en
mailing list