it might be totally inaccessible, hence weaken our language a bit and
just say "not readable", thus making not claim whether it is writable or
not.
Follow-up for
3a90bef55a5a71a03629a762470b0f9014cd8453
#include "device-private.h"
#include "device-util.h"
#include "dirent-util.h"
+#include "errno-util.h"
#include "fd-util.h"
#include "sort-util.h"
#include "static-destruct.h"
if (len > 0)
continue;
- } else if (r == -EPERM)
- value = "(write-only)";
+ } else if (ERRNO_IS_PRIVILEGE(r))
+ value = "(not readable)";
else
continue;