search for: uid_gid

Displaying 2 results from an estimated 2 matches for "uid_gid".

Did you mean: uid&gid
2023 Jun 29
1
[PATCH guestfs-tools] customize: Implement --chown option
...b46edc6 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -153,6 +153,17 @@ let run (g : G.guestfs) root (ops : ops) = let mode = if String.is_prefix mode "0" then "0o" ^ mode else mode in g#chmod (int_of_string mode) path + | `Chown (uid_gid, path) -> + let uid, gid = String.split "." uid_gid in + let uid, gid = + try int_of_string uid, int_of_string gid + with Failure _ -> + error (f_"--chown: could not parse numeric UID.GID from \ + %s") uid_g...
2023 Jun 29
1
[PATCH guestfs-tools] customize: Implement --chown option
.../customize_run.ml > +++ b/customize/customize_run.ml > @@ -153,6 +153,17 @@ let run (g : G.guestfs) root (ops : ops) = > let mode = if String.is_prefix mode "0" then "0o" ^ mode else mode in > g#chmod (int_of_string mode) path > > + | `Chown (uid_gid, path) -> > + let uid, gid = String.split "." uid_gid in > + let uid, gid = > + try int_of_string uid, int_of_string gid > + with Failure _ -> > + error (f_"--chown: could not parse numeric UID.GID from \ > +...