Add invalid path /etc not pointing to /etc/opt/csw
Brought to you by:
dmichelsen,
wahwah
I just noticed a build which references a configuration file in /etc instead of /etc/opt/csw:
current9s% cd work/solaris9-sparc/build-isa-sparcv8/bar-1.11.1/
current9s% grep clpbarrc *
args.c: if (access("/etc/clpbarrc", R_OK) == 0) {
args.c: sprintf(filename, "/etc/clpbarrc");
bar.1:.B /etc/clpbarrc
bar.1:.BR /etc/clpbarrc .
bar.1:.BR /etc/clpbarrc .
bar.1.in:.B /etc/clpbarrc
bar.1.in:.BR /etc/clpbarrc .
bar.1.in:.BR /etc/clpbarrc .
It would be good if checkpkg would catch that.
How would you generalize the check based on the above example?
Maybe a match to
/etcbut not/etc/opt/csw?