--- ../../../../src/winsup/utils/regtool.cc Tue Jan 9 10:21:04 2001 +++ ../../../../src/winsup/utils/regtool.cc-orig Tue Jan 9 09:40:08 2001 @@ -18,12 +18,6 @@ enum { KT_AUTO, KT_INT, KT_STRING, KT_EXPAND, KT_MULTI } key_type = KT_AUTO; -#define LIST_KEYS 0x01 -#define LIST_VALS 0x02 -#define LIST_ALL (LIST_KEYS | LIST_VALS) - -int listwhat = 0; -int postfix = 0; int verbose = 0; int quiet = 0; char **argv; @@ -35,10 +29,7 @@ const char *usage_msg[] = { "Regtool Copyright (c) 2000 Red Hat Inc", " regtool -h - print this message", - " regtool [-v|-p|-k|-l] list [key] - list subkeys and values", - " -p=postfix, like ls -p, appends / postfix to key names", - " -k=keys, lists only keys", - " -l=values, lists only values", + " regtool [-v] list [key] - list subkeys and values", " regtool [-v] add [key\\subkey] - add new subkey", " regtool [-v] remove [key] - remove key", " regtool [-v|-q] check [key] - exit 0 if key exists, 1 if not", @@ -76,7 +67,6 @@ Fail(DWORD rv) | FORMAT_MESSAGE_FROM_SYSTEM, 0, rv, 0, (CHAR *)&buf, 0, 0); fprintf(stderr, "Error: %s\n", buf); - LocalFree(buf); } exit(1); } @@ -247,72 +237,65 @@ cmd_list() value_name = (char *)malloc(maxvalnamelen+1); value_data = (unsigned char *)malloc(maxvaluelen+1); - if (!listwhat) - listwhat = LIST_ALL; - - if (listwhat & LIST_KEYS) - for (i=0; i