when i start du from a directory on which i don't have read access for the
user running du and want to run du on another directory it fails with the
message "du: cannot open current directory: Permission denied"

i'm not sure, but i think the reason for this is in the function du_files()
in du.c

  /* Remember the inode and device number of the current directory.  */
  if (stat (".", &stat_buf))
     ^^^^^^^^^^^^^^^^^^^^^^^
afaik this line needs read access to the working directory.

i would consider this as a bug in the du utility.

cu
/gst

-- 
Widerstand!

Reply via email to