Changeset 687 in MondoRescue for trunk/mondo/mondo/common/libmondo-files.c


Ignore:
Timestamp:
Jul 17, 2006, 3:39:42 PM (18 years ago)
Author:
bcornec
Message:

merge -r671:686 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-files.c

    r672 r687  
    435435    if (i < 0) {
    436436        asprintf(&command,
    437                 "tail -n3 %s | fgrep -i \"%c\" | tail -n1 | awk '{print $0;}'",
     437                "tail -n3 %s | grep -Fi \"%c\" | tail -n1 | awk '{print $0;}'",
    438438                filename, '%');
    439439        asprintf(&lastline,
     
    513513 * @return The length of the file, or -1 for error.
    514514 */
    515 long long length_of_file(char *filename)
     515off_t length_of_file(char *filename)
    516516{
    517517    /*@ pointers *************************************************** */
     
    519519
    520520    /*@ long long ************************************************* */
    521     long long length;
     521    off_t length;
    522522
    523523    fin = fopen(filename, "r");
     
    528528    }
    529529    fseeko(fin, 0, SEEK_END);
    530     length = ftell(fin);
     530    length = ftello(fin);
    531531    paranoid_fclose(fin);
    532532    return (length);
     
    763763                }
    764764            } else {
     765                /* BERLIOS: more than long here ??? */
    765766                file_len_K = (long) (length_of_file(fname) / 1024);
    766767            }
Note: See TracChangeset for help on using the changeset viewer.