On Tue, Oct 13, 2009 at 09:36:52PM -0400, Mike Frysinger wrote: > On Tuesday 13 October 2009 04:15:46 Karel Zak wrote: > > > On Monday 12 October 2009 21:19:27 Christoph Hellwig wrote: > > > > FYI: this breaks xfstests as it expects mkfs.* only in /sbin. Wouldn't > > > > be surprised if others tools do the same. > > > > the other example is /sbin/mkfs, this tool uses > > > > "PATH=/sbin:/sbin/fs:/sbin/fs.d:/etc/fs:/etc" > > well, this is info is a bit limited. mkfs will prepend this to the current > $PATH, so generally nothing is broken that isnt already broken (i.e. a system > with a reduced PATH in the env). regardless of anything else, i think the > default search PATH should include /usr/sbin and maybe /usr/local/sbin > (especially since it uses such odd paths like /sbin/fs*/). > > mkfs is also a little weird here. i'd expect it to monkey with the PATH only > if the current PATH was insufficient. i.e. it should be appending the PATH > instead of prepending it. the same behavior is in fsck/fsck.c. I agree with your points, but I'm not sure if we need to change anything, it seems that the current concept (odd paths, missing /usr and prepended PATH) works for more than 10 years and we don't have any bug report from users. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html