X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=inline;f=nucleus%2Ftools%2Fclam_tools%2Fcygwin_fixer.cpp;fp=nucleus%2Ftools%2Fclam_tools%2Fcygwin_fixer.cpp;h=1295d917880de7187627b0a82357432a014b5784;hb=22bac659a8652e651411cbe1d30283e6a9b28e69;hp=2f4eb1c8e8ae08753a61ec24e03a4673be539aea;hpb=b51411a29f1a751a09e69f5676afeea24a94ac83;p=feisty_meow.git diff --git a/nucleus/tools/clam_tools/cygwin_fixer.cpp b/nucleus/tools/clam_tools/cygwin_fixer.cpp index 2f4eb1c8..1295d917 100644 --- a/nucleus/tools/clam_tools/cygwin_fixer.cpp +++ b/nucleus/tools/clam_tools/cygwin_fixer.cpp @@ -27,7 +27,7 @@ char *translate_cygwin(char *fname) strncat(newprefix, fname + 11, oldlen - 11 + 1); // one extra for null char. return newprefix; // mem leak here; cannot be helped for quick fix using functional style. } else if ( (fname[0] == '-') && (oldlen > 12) - && (!strncmp(fname + 2, "/cygdrive/", 10) ) { + && (!strncmp(fname + 2, "/cygdrive/", 10)) ) { // in the second case we are looking for command line options. this code handles a parameter // that starts with a single dash and has a single flag character after that. char *newprefix = (char *)malloc(oldlen); @@ -45,12 +45,15 @@ char *translate_cygwin(char *fname) } +/* + function dossify_and_run_commands() { - declare -a darc_commands=() + + declare -a darc_commands=() for i in "$@"; do - # we only mess with the command line on windows. + // we only mess with the command line on windows. if [ "$OS" == "Windows_NT" ]; then if [[ "$i" =~ ^-[a-zA-z][/\"].* ]]; then #echo matched on our pattern for parameters @@ -71,7 +74,9 @@ function dossify_and_run_commands() fi done +} +*/ int main(int argc, char *argv[]) {