Displaying 9 results from an estimated 9 matches for "0o7777".
Did you mean:
0o777
2015 Mar 25
2
[PATCH] customize: fix --upload to FAT partition
FAT doesn't support file ownership, so show warning instead
of error.
Fixes RHBZ#1196101
Maros Zatko (1):
customize: fix --upload to FAT partition (RHBZ#1196101)
customize/customize_run.ml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
1.9.3
2015 Mar 25
0
[PATCH] customize: fix --upload to FAT partition (RHBZ#1196101)
...file changed, 4 insertions(+), 1 deletion(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index dbb77df..306b7f2 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -290,7 +290,10 @@ exec >>%s 2>&1
let perms = statbuf.st_perm land 0o7777 (* sticky & set*id *) in
g#chmod perms dest;
let uid, gid = statbuf.st_uid, statbuf.st_gid in
- g#chown uid gid dest
+ let chown () =
+ try g#chown uid gid dest
+ with Guestfs.Error e -> warning "%s" e in
+ chown ()
| `Write (path,...
2015 Mar 26
2
[PATCH v3] customize: fix --upload to FAT partition (RHBZ#1196101)
Some filesystems, such as FAT doesn't support file
ownership, so show warning instead of error on EPERM.
Maros Zatko (1):
customize: fix --upload to FAT partition (RHBZ#1196101)
customize/customize_run.ml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
1.9.3
2015 Mar 25
2
[PACTH v2] customize: fix --upload to FAT partition
FAT doesn't support file ownership, so show warning instead
of error.
Fixes RHBZ#1196101
Maros Zatko (1):
customize: fix --upload to FAT partition (RHBZ#1196101)
customize/customize_run.ml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
--
1.9.3
2015 Mar 25
1
[PACTH v2] customize: fix --upload to FAT partition (RHBZ#1196101)
...letions(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index dbb77df..40d19ac 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -289,8 +289,20 @@ exec >>%s 2>&1
let statbuf = stat path in
let perms = statbuf.st_perm land 0o7777 (* sticky & set*id *) in
g#chmod perms dest;
- let uid, gid = statbuf.st_uid, statbuf.st_gid in
- g#chown uid gid dest
+
+ (* Check if target resides on FAT filesystem and then don't change
+ * ownership
+ *)
+ let mps = List.map (fun (dev, mp) -> m...
2015 Mar 26
0
[PATCH v3] customize: fix --upload to FAT partition (RHBZ#1196101)
...file changed, 7 insertions(+), 1 deletion(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index dbb77df..f2dbaa2 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -290,7 +290,13 @@ exec >>%s 2>&1
let perms = statbuf.st_perm land 0o7777 (* sticky & set*id *) in
g#chmod perms dest;
let uid, gid = statbuf.st_uid, statbuf.st_gid in
- g#chown uid gid dest
+ let chown () =
+ try g#chown uid gid dest
+ with Guestfs.Error m as e ->
+ if g#last_errno () = Guestfs.Errno.errno_EPERM
+...
2014 Jan 14
0
[PATCH] builder, edit, fish: use copy-attributes
...try Some (g#getxattr src "security.selinux") with _ -> None
- ) else None in
-
- (* Set the permissions (inc. sticky and set*id bits), UID, GID. *)
- let mode = Int64.to_int stat.G.mode
- and uid = Int64.to_int stat.G.uid and gid = Int64.to_int stat.G.gid in
- g#chmod (mode land 0o7777) dest;
- g#chown uid gid dest;
-
- (* Set the SELinux context. *)
- match selinux_context with
- | None -> ()
- | Some selinux_context ->
- g#setxattr "security.selinux"
- selinux_context (String.length selinux_context) dest
diff --git a/edit/edit.c b/edit/edit.c
index...
2014 Jan 07
8
RFC: copy-attributes command
Hi,
attached there is a prototype of patch for adding a new copy-attributes
command. Such command would allow copy the attributes of a "file" to
another, so for example in guestfish:
copy-attributes foo bar permissions:true xattributes:false
would only copy the permissions of foo to bar, not copying its extended
attributes too.
Just few notes:
- my first daemon command, so
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge
and interconnected.
Anyway, what it does is lay the groundwork for a new tool which I'm
calling 'virt-customize'. virt-customize is virt-builder, but without
the part where it downloads a template from a respository. Just the
part where it customizes the template, that is, installing packages,
editing