On HPUX 10.20 you will see the following: $ rm f234567890123456789012345678901234567890123456789012345678901234567890 $ touch f234567890123456789012345678901234567890123456789012345678901234567890 $ rpm --rcfile=f234567890123456789012345678901234567890123456789012345678901234567890 Unable to open f234567890123456 for reading: No such file or directory. This is due to the code in lib/rpmrc.c:548: char fn[FILENAME_MAX+1]; because /usr/include/stdio.h defines FILENAME_MAX to 14 !!
Fixed in rpm. Thanks for reporting.