Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Yitzchak Scott-Thoennes on 3/3/2006 10:41 AM: as another example of non-traditional access to the registry. How about /proc/registry//machinename/... to access the registry of other computers on the network? Or is // not at the

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Corinna Vinschen
On Mar 2 21:59, Christian Franke wrote: Corinna Vinschen wrote: ... //printf(key `%s' value `%s'\n, n, value); Why is this printf commented out? If it's not needed, please remove. cvs annotate regtool.cc ... 1.1 (cgf 17-Feb-00): } 1.1 (cgf 17-Feb-00):

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 09:46, Corinna Vinschen wrote: Btw., since you seem to be interested in hacking the registry... would you also be interested to introduce registry write access below /proc/registry inside of the Cygwin DLL? That would be extra cool. I'm not quite sure how to handle the

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Dave Korn wrote: That's actually an interesting idea. I was always thinking along the lines of using POSIX file types (plain,socket,pipe,...). What if a key foo.sz really exists and somebody wants to create a registry key foo? No problem. If you want to create

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
Now, what if you write a file as foo.sz, and then write it as foo.dw. Do we change the key type? Absolutely. Do we fail with ENOENT? What is the semantics there? Well, the semantics of the registry API is that you specify the type explicitly every time you set a value, and that

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 16:02, Igor Peshansky wrote: I'm not quite sure how to handle the mapping from file types to registry key types, but there might be some simple way which I'm just too blind to see. Hmm, there is currently no way for the programs to find out the registry key type, unless

RE: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Dave Korn
On 03 March 2006 17:42, Yitzchak Scott-Thoennes wrote: Hey, how about using pseudo filename-extensions on the pseudo-files that represent registry keys? As long as we are how-bouting, I'm looking at http://search.cpan.org/~tyemq/Win32-TieRegistry-0.24/TieRegistry.pm as another

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Igor Peshansky
On Fri, 3 Mar 2006, Christian Franke wrote: In fact I had the idea to hack the registry, in particular fix the read access to registry values starting with backslash: $ cd /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/MountedDevices $ ls ... \DosDevices\C: \DosDevices\D: ... $ cat

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-03 Thread Christian Franke
Igor Peshansky wrote: What's wrong with using open() flags? Save/restore registry tree in/from file tree wont work. Suggest to start a new thread for this discussion Right, good idea, except not on this list (as Dave pointed out). What would be a good place --

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-03-01 Thread Christian Franke
Attached is version 2 of the patch, including an update of utils.sgml REG_BINARY can now be ether read as binary from stdin: $ echo 0: 01 02 FE FF | xxd -r | regtool -b set KEY/BINVALUE - $ regtool get KEY/BINVALUE | regtool -b set KEY/BINVALUE - or specified as hex arguments: $ regtool -b

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-02-15 Thread Corinna Vinschen
On Feb 13 20:43, Christian Franke wrote: you wrote: your assignment has finally arrived and is signed. Do you have a new version of your regtool patch available, after this discussion took place? No, sorry. Hope to find some time in about a week. I'm still not sure how to handle binary

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-02-13 Thread Christian Franke
Hi Corrinna, you wrote: Hi Christian, On Jan 26 10:19, Corinna Vinschen wrote: On Jan 25 21:58, Christian Franke wrote: Will send the snail mail with the legal stuff soon ;-) Thanks, I'm looking forward. Sorry for the hassle, but we still didn't get legal permit for a

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-02-11 Thread Corinna Vinschen
Hi Christian, On Jan 26 10:19, Corinna Vinschen wrote: On Jan 25 21:58, Christian Franke wrote: Will send the snail mail with the legal stuff soon ;-) Thanks, I'm looking forward. Sorry for the hassle, but we still didn't get legal permit for a simpler method. Please be patient, this

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Corinna Vinschen
On Jan 24 21:00, Christian Franke wrote: Hi, the attached patch adds commands load and unload and options -b, --binary to regtool. Load a registry hive from PATH into new SUBKEY: regtool load KEY\SUBKEY PATH Unload and remove SUBKEY later: regtool unload KEY\SUBKEY Print

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Brian Ford
On Wed, 25 Jan 2006, Igor Peshansky wrote: I'm not aware of any program that does the reverse (hex dump-binary), but writing a perl script for that is trivial. xxd -r ;-). -- Brian Ford Lead Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Christian Franke
Corinna Vinschen wrote: [...] Thanks for this patch, it looks pretty useful. There are just two things missing. First, could you please create a matching ChangeLog entry? OK. Second, worse, I don't see your name on the list of people having a copyright assignment in place, which is

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Brian Dessent
Christian Franke wrote: At least when regtool is used interactively, it is IMO not very useful to have modem-line-noise-like output for REG_BINARY, but human readable output for the other value types. But this is the current behavior of regtool get Instead of an explicit -b flag,

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Igor Peshansky
On Wed, 25 Jan 2006, Brian Dessent wrote: Christian Franke wrote: At least when regtool is used interactively, it is IMO not very useful to have modem-line-noise-like output for REG_BINARY, but human readable output for the other value types. But this is the current behavior of regtool

Re: [Patch] regtool: Add load/unload commands and --binary option

2006-01-25 Thread Brian Dessent
Igor Peshansky wrote: What if you want to redirect the hex dump to a file? IMO, isatty() checks are only useful if the output won't change qualitatively on redirection (e.g., for coloring). Otherwise, it's always better to use an explicit flag. Good point. Why don't we just emulate the