bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20970] Trailing slash on directory arguments breaks -name


From: Eric Blake
Subject: [bug #20970] Trailing slash on directory arguments breaks -name
Date: Sat, 24 Nov 2007 13:54:31 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Mnenhy/0.7.5.666

Follow-up Comment #8, bug #20970 (project findutils):

The fix is to use base_name (which malloc's) in combination with
strip_trailing_slashes to get the correct string, then free the memory after
the comparison.  Both of those functions are provided by the dirname gnulib
module.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20970>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]