aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests/t-basic.c
diff options
context:
space:
mode:
authorMarcelo Roberto Jimenez <marcelo.jimenez@gmail.com>2024-01-10 19:57:09 -0300
committerJunio C Hamano <gitster@pobox.com>2024-01-10 16:08:21 -0800
commitac62a3649fcfd7f2caa80ffdfb8c3135764291ef (patch)
tree97902ef02d65f5130e2a447143485667c5fc5695 /t/unit-tests/t-basic.c
parentGit 2.43 (diff)
downloadgit-ac62a3649fcfd7f2caa80ffdfb8c3135764291ef.tar.gz
git-ac62a3649fcfd7f2caa80ffdfb8c3135764291ef.zip
gitweb: die when a configuration file cannot be read
Fix a possibility of a permission to access error go unnoticed. Perl uses two different variables to manage errors from a "do $filename" construct. One is $@, which is set in this case when do is unable to compile the file. The other is $!, which is set in case do cannot read the file. The current code only checks "$@", which means a configuration file passed to GitWeb that is not readable by the server process does not cause it to "die". Make sure we also check and act on "$!" to fix this. Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-basic.c')
0 files changed, 0 insertions, 0 deletions