//***************************************************************** // // UNDIR - Unix (or at least Linux) version of my NDIR utility // // Revision history // // 1.09 02/08/05 09:07 // - Initialize strlist struct on allocation // - Fix field length in -2 option // // 1.10 02/09/05 09:40 // Add support for Linux-specific colors // // 1.11 02/16/05 12:34 // Try to make symlinks also show target filename // // 1.12 02/18/05 15:35 // When generating new ini file, add new color options // // 1.13 03/30/05 14:24 // Try to support filespecs // // 1.14 04/05/05 11:20 // Now filespecs work, but directories don't; fixed. // *Still* doesn't support multiple directories // // 1.15 04/07/05 12:30 // - Clean up file-read code // - Try to restore support for multiple directories // // 1.16 04/19/05 17:56 // Generate fully-qualified paths for searching // // 1.17 04/20/05 11:46 // Fix cluster-size management in tree listing // // 1.18 04/25/05 11:46 // Build with flag to support 64-bit files // // 1.19 12/12/05 13:03 // More mucking around with paths to try to solve file/path // resolution differences between *nix and Windows/dos // // 1.20 12/27/05 15:02 // Change how rows/columns are extracted from stty, // still trying to figure out why I still occasionally // crash when running this from a dialup session... // // 1.21 09/07/06 10:13 // - Restore drive summary (-i), with a linux context // - change get_disk_info() to use accurate info // // 1.22 02/14/07 16:29 // Try to deal with situations where non-existent filespec // is specified. It *should* be reporting // "no matching files found" on the requested path. // // 1.23 11/30/07 16:15 // Resolve problem with resolving symlinks when filespecs are specified. // I have to use something other than realpath(), which resolves // symlinks whether I want it to or not!! (I don't) // // 1.24 10/06/10 11:30 // - fix bug in parsing ../.. path // - directory tree was not using correct chars for low_ascii // // 1.25 10/10/13 09:11 // Modify default path for ndir.ini; instead of using /etc, // use user home directory //*****************************************************************