search for: otag

Displaying 20 results from an estimated 25 matches for "otag".

Did you mean: tag
2004 May 03
4
ctags(1) command execution vulnerability
...is a bad behavior for any kind of program. Solution: --- usr.bin/ctags/ctags.c.orig Tue May 4 09:23:30 2004 +++ usr.bin/ctags/ctags.c Tue May 4 09:25:48 2004 @@ -166,7 +166,7 @@ if (uflag) { for (step = 0; step < argc; step++) { (void)asprintf(&cmd, - "mv %s OTAGS; fgrep -v '\t%s\t' OTAGS >%s; rm OTAGS", + "mv '%s' OTAGS; fgrep -v '\t%s\t' OTAGS >'%s'; rm OTAGS", outfile, argv[step], outfile); if (cmd == NULL) err(1, "out of space"); @@ -181,7 +181,7 @@ put_ent...
2017 Oct 03
0
[PATCH v2 2/2] builder: Choose better weights in the planner.
...(-) diff --git a/builder/builder.ml b/builder/builder.ml index d8e625f68..fd19aa7d9 100644 --- a/builder/builder.ml +++ b/builder/builder.ml @@ -414,12 +414,59 @@ let main () = let is_not t = not (is t) in let remove = List.remove_assoc in let ret = ref [] in - let tr task weight otags = push_front (task, weight, otags) ret in - (* XXX Weights are not very smartly chosen. At the moment I'm - * using a range [0..100] where 0 = free and 100 = expensive. We - * could estimate weights better by looking at file sizes. + (* The scheme for weights ranges from 0 =...
2017 Nov 21
0
[PATCH] builder: planner: Don't add some impossible transitions.
...tags in + (* The scheme for weights ranges from 0 = free to 100 = most expensive: * * 0 = free operations like renaming a file in the same directory @@ -433,8 +435,7 @@ let main () = * We could estimate weights better by looking at file sizes. *) let weight task otags = - let infile = List.assoc `Filename itags - and outfile = List.assoc `Filename otags in + let outfile = List.assoc `Filename otags in (* If infile/outfile don't exist, get the containing directory. *) let infile = @@ -474,14 +475,15 @@ let main () = * thi...
2017 Nov 21
1
[PATCH v2] builder: planner: Don't add some impossible transitions.
Previous patch contained a typo. Changed output_format -> output_filename. Rich.
2017 Oct 04
2
[PATCH v3 0/2] builder: Choose better weights in the planner.
v2 -> v3: - Drop gnulib fallback.
2017 Oct 02
3
[PATCH 0/2] builder: Choose better weights in the planner.
It started out as "this'll be just a simple fix ..." and turned into something a bit over-engineered in the end. Here it is anyway. Rich.
2017 Oct 03
4
[PATCH v2 0/2] builder: Choose better weights in the planner.
v1 -> v2: - Removed the f_type field from StatVFS.statvfs structure. - New function StatVFS.filesystem_is_remote, written in C. [Thinking about it, this should probably be called ?is_network_filesystem?, but I can change that before pushing]. - Use statvfs instead of fstatvfs, and statfs instead of fstatfs. - Rejigged the comments in builder/builder.ml to make them simpler
2016 May 23
7
[PATCH 1/5] mllib: make external_command echo the command executed
Add an optional parameter to disable this behaviour, so the Curl module in v2v won't print user-sensible data (like passwords). --- builder/checksums.ml | 1 - builder/downloader.ml | 1 - builder/sigchecker.ml | 1 - mllib/common_utils.ml | 4 +++- mllib/common_utils.mli | 7 +++++-- v2v/curl.ml | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git
2016 May 23
0
[PATCH 5/5] mllib: add a new run_command helper
...-add"; cmdline.arg ] in + exit (run_command (Array.of_list cmd)) | `Delete_cache -> (* --delete-cache *) (match cmdline.cache with @@ -550,14 +549,14 @@ let main () = let ifile = List.assoc `Filename itags in let ofile = List.assoc `Filename otags in message (f_"Copying"); - let cmd = sprintf "cp %s %s" (quote ifile) (quote ofile) in - if shell_command cmd <> 0 then exit 1 + let cmd = [| "cp"; ifile; ofile |] in + if run_command cmd <> 0 then exit 1 | itags, `Rename...
2016 May 22
0
[PATCH 2/2] ocaml tools: Use a common debug function.
...)) (quote cmdline.arg) in - if verbose () then printf "%s\n%!" cmd; + debug "%s" cmd; exit (Sys.command cmd) | `Delete_cache -> (* --delete-cache *) @@ -552,14 +552,14 @@ let main () = let ofile = List.assoc `Filename otags in message (f_"Copying"); let cmd = sprintf "cp %s %s" (quote ifile) (quote ofile) in - if verbose () then printf "%s\n%!" cmd; + debug "%s" cmd; if Sys.command cmd <> 0 then exit 1 | itags, `Rename, otags ->...
2016 May 22
4
ocaml tools: Use a common debug function.
Add a Common_utils.debug function for printing messages only when in verbose mode. Rich.
2017 Nov 21
4
Re: virt-builder resize error
On Tue, Nov 21, 2017 at 3:55 AM, Pino Toscano <ptoscano@redhat.com> wrote: > Hi, > > On Monday, 20 November 2017 22:57:04 CET David Kaylor wrote: > > I was trying out virt-builder and noticed that in some directories I > > receive an error when the image is resized. > > > > For example, if I run the following command from my home directory it > works >
2013 Dec 12
0
xen-api-libs REMOVED from testing
...stribution has changed. Previous version: 0.5.2-3.1 Current version: (not in testing) Hint: <http://release.debian.org/britney/hints/mehdi> # 10-12-2013; generated with comigrate -c /srv/release.debian.org/britney/code/b2/britney.conf --migrate ocaml --remove xen-api-libs --remove otags --remove ocamlduce --remove jocaml --remove ocaml-sqlexpr --remove ocaml-extunix --remove obrowser --remove janest-core --remove galax --remove cduce --remove cameleon --remove sks --remove approx The script that generates this mail tries to extract removal reasons from comments in the britney hi...
2015 Jul 28
0
[PATCH 06/10] builder: split Index_parser.index in an own module
...let main () = b, sz in let output_size = - let { Index_parser.size = original_image_size } = entry in + let { Index.size = original_image_size } = entry in let size = match size with @@ -557,7 +557,7 @@ let main () = let osize = Int64.of_string (List.assoc `Size otags) in let osize = roundup64 osize 512L in let oformat = List.assoc `Format otags in - let { Index_parser.expand = expand; lvexpand = lvexpand } = entry in + let { Index.expand = expand; lvexpand = lvexpand } = entry in message (f_"Resizing (using virt-resize) to e...
2017 Nov 21
2
[PATCH v3 0/2] common/mlstdutils: Extend the List module.
v2 -> v3: - Renamed List.assoc_ -> List.assoc_lbl. - Rebased on top of current master branch. Rich.
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it a little further by extending List and adding a new Option submodule. All basically simple refactoring. Rich.
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...
2016 Jul 07
12
[PATCH v3 0/8] v2v: Move Curl wrapper to mllib and more.
v2 -> v3: - Changes to the Curl API suggested by Pino.
2016 Jul 07
9
[PATCH v2 0/8] v2v: Move Curl wrapper to mllib and use it for virt-builder (and more).
v1 -> v2: - Fixed the bug with precedence of if / @. - Add some imperative list operators inspired by Perl, and use those for constructing the Curl arguments, and more. Rich.
2015 May 15
0
[PATCH 3/4] ocaml tools: Use global variables to store trace (-x) and verbose (-v) flags.
...6,7 @@ let main () = in (* Print out the plan. *) - if verbose then ( + if verbose () then ( let print_tags tags = (try let v = List.assoc `Filename tags in printf " +filename=%s" v @@ -523,14 +522,14 @@ let main () = let ofile = List.assoc `Filename otags in msg (f_"Copying"); let cmd = sprintf "cp %s %s" (quote ifile) (quote ofile) in - if verbose then printf "%s\n%!" cmd; + if verbose () then printf "%s\n%!" cmd; if Sys.command cmd <> 0 then exit 1 | itags, `Renam...