Author Topic: /secure/cmds/creators/ls.c  (Read 1895 times)

Offline revathiest

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
/secure/cmds/creators/ls.c
« on: May 10, 2011, 12:35:25 PM »
I found a minor bug in this file while trying to change how it works.

Line 182 in the map_files function

It currently reads:

      if((flags[0]+file[0]) && file[1] != -2) tmp = "*";

It SHOULD read:

      if((flags[0]+"/"+file[0]) && file[1] != -2) tmp = "*";

The lack of / causes the directory and filename to butt up against one another which causes the find_object to fail when called.  Therefore, the * is never added to the file listing when ls is used.
« Last Edit: May 10, 2011, 12:46:00 PM by revathiest »