[paludis-dev] [Paludis] #1212: Logic error in dodoc regarding directories

Paludis trac at pioto.org
Thu Jan 5 22:16:38 UTC 2012

#1212: Logic error in dodoc regarding directories
 Reporter:  woutershep         |         Owner:
     Type:  defect             |        Status:  new
 Priority:  MinorRelease       |     Milestone:
Component:  core/paludis/util  |       Version:  0.70.2
 Keywords:  dodoc              |    Blocked By:
 Blocking:                     |  Distribution:  N/A
 When dodoc is called with a directory there is a chance that it has a

 $ mkdir empty; [[ -s empty ]];
 $ echo Exited with: $?
 Exited with: 0

 This means that the case with [[ -s ]]; is taken instead of [[ -d ]];
 and that there will be no error set.

 Attached is a patch that fixes it by moving the -d check before the -s

Ticket URL: <http://trac.pioto.org/paludis/ticket/1212>
Paludis <http://paludis.pioto.org/>
Paludis, the Other Package Mangler

More information about the paludis-dev mailing list