dl.c: Fix bug when setting the error state for user for all files