Changeset 90


Ignore:
Timestamp:
03/28/07 15:22:38 (17 years ago)
Author:
tim
Message:

minor changes to Makefiles

Added one warning on an unlikely condition in reglookup

Added the -H option to reglookup-timeline for ommiting the header

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Makefile

    r65 r90  
    1212
    1313install:
    14         cp -r $(FILES) $(BIN_PREFIX)
     14        install -m 0755 $(FILES) $(BIN_PREFIX)
    1515
    1616clean:
  • trunk/bin/reglookup-timeline

    r68 r90  
    55# timelines for investigations.
    66#
    7 # Copyright (C) 2005-2006 Timothy D. Morgan
     7# Copyright (C) 2005-2007 Timothy D. Morgan
    88#
    99# This program is free software; you can redistribute it and/or modify
     
    2525usage()
    2626{
    27   echo "Usage: $0 <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
     27  echo "Usage: $0 [-H] <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
    2828}
    2929
     
    3434fi
    3535
    36 echo "MTIME,FILE,PATH"
     36PRINT_HEADER=true
     37if [ "$1" = "-H" ]; then
     38  PRINT_HEADER=false
     39  shift
     40fi
     41
     42if [ "$PRINT_HEADER" = "true" ]; then
     43  echo "MTIME,FILE,PATH"
     44fi
     45
    3746for F in $@; do
    3847  reglookup -t KEY -H "$F" | awk -F',' '{ printf "%s,'"$F"',%s\n",$4,$1; }'
  • trunk/src/Makefile

    r73 r90  
    1616
    1717install:
    18         cp -r $(FILES) $(BIN_PREFIX)
     18        install -m 0755 $(FILES) $(BIN_PREFIX)
    1919
    2020clean:
  • trunk/src/reglookup.c

    r88 r90  
    546546    tmp_buf[3] = (uint8)(vk->data_off & 0xFF);
    547547    if(size > 4)
    548       /* XXX: should we kick out a warning here?  If it is in the
    549        *      offset and longer than four, file could be corrupt
    550        *      or malicious... */
     548    {
     549      fprintf(stderr, "WARNING: value stored in offset larger than 4. "
     550              "Truncating...\n");
    551551      size = 4;
     552    }
    552553    quoted_value = data_to_ascii(tmp_buf, 4, vk->type, &conv_error);
    553554  }
Note: See TracChangeset for help on using the changeset viewer.