if we pass -n, don't do syscalls that need pathnames.