Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154262 - sys-apps/coreutils-6.4 - du does not handle -x dirs gracefully
Summary: sys-apps/coreutils-6.4 - du does not handle -x dirs gracefully
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Lowest minor
Assignee: Gentoo's Team for Core System packages
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 09:34 UTC by gervin23
Modified: 2006-11-26 07:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gervin23 2006-11-06 09:34:54 UTC
only affects regular/non-root user. when issuing du on directory with a subdirectory which has the execute bit unset, du gives permission denied and exits. it took me a long time to figure out why this was happening and hunt down which directory it was choking on. would be nice if the app continued to calculate usage and issue a nice informative error message when finished.

package: sys-apps/coreutils-6.4


emerge --info:

Portage 2.1.2_rc1-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Genuine Intel(R) CPU           T2600  @ 2.16GHz
Gentoo Base System version 1.12.6
Last Sync: Mon, 06 Nov 2006 03:50:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus divx4linux dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd exif fam fat ffmpeg fglrx firefox flac fuse gcj gd gdbm gif gimp gimpprint glitz gnome gphoto2 gpm graphviz gstreamer gtk gtkhtml hal hdaps iconv imagemagick imlib input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog ithreads jack jpeg kernel_linux lcms libg++ libnotify linguas_en linguas_en_US mad mikmod mmx motif mp3 mpeg mysql nas nautilus ncurses network nls nptl nptlonly nsplugin ntfs ogg opengl pam pam_console pcmcia pcre pdf perl php png postgres ppds pppd print pthreads python qt3 qt4 quicktime rdesktop readline reflection samba sdl session spell spl sqlite sse sse2 ssl svg tcpd theora threads thunderbird tiff tk truetype truetype-fonts type1-fonts ucs2 udev unicode usb userland_GNU vcd vhosts video_cards_fbdev video_cards_fglrx video_cards_vesa vmx vorbis webdav wifi win32codecs wxwindows xcomposite xfs xml xorg xosd xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 gervin23 2006-11-06 09:46:22 UTC
to reproduce (non-root user):

mkdir testdu
chmod -x testdu
du
Comment 2 SpanKY gentoo-dev 2006-11-06 13:17:16 UTC
well, not being able to read a -x dir as a non-root user is expected behavior, but du should just issue a warning about that dir and continue on it's way
Comment 3 SpanKY gentoo-dev 2006-11-26 07:21:47 UTC
upstream has fixed this and released it with coreutils-6.6