search for: get_umask

Displaying 11 results from an estimated 11 matches for "get_umask".

2016 Apr 13
1
[PATCH v2 libguestfs] launch: Implement a safer getumask.
...int guestfs_int_getumask (guestfs_h *g); + #endif /* GUESTFS_INTERNAL_H_ */ diff --git a/src/launch.c b/src/launch.c index a4326fe..460ed29 100644 --- a/src/launch.c +++ b/src/launch.c @@ -50,8 +50,6 @@ static struct backend { const struct backend_ops *ops; } *backends = NULL; -static mode_t get_umask (guestfs_h *g); - int guestfs_impl_launch (guestfs_h *g) { @@ -75,6 +73,7 @@ guestfs_impl_launch (guestfs_h *g) guestfs_version (g); struct backend *b; CLEANUP_FREE char *backend = guestfs_get_backend (g); + int mask; debug (g, "launch: program=%s", g->pro...
2016 Apr 14
2
[PATCH v3 libguestfs] launch: Implement a safer getumask.
...int guestfs_int_getumask (guestfs_h *g); + #endif /* GUESTFS_INTERNAL_H_ */ diff --git a/src/launch.c b/src/launch.c index a4326fe..460ed29 100644 --- a/src/launch.c +++ b/src/launch.c @@ -50,8 +50,6 @@ static struct backend { const struct backend_ops *ops; } *backends = NULL; -static mode_t get_umask (guestfs_h *g); - int guestfs_impl_launch (guestfs_h *g) { @@ -75,6 +73,7 @@ guestfs_impl_launch (guestfs_h *g) guestfs_version (g); struct backend *b; CLEANUP_FREE char *backend = guestfs_get_backend (g); + int mask; debug (g, "launch: program=%s", g->pro...
2016 Apr 13
3
[PATCH libguestfs] launch: Implement a safer getumask.
...int guestfs_int_getumask (guestfs_h *g); + #endif /* GUESTFS_INTERNAL_H_ */ diff --git a/src/launch.c b/src/launch.c index a4326fe..460ed29 100644 --- a/src/launch.c +++ b/src/launch.c @@ -50,8 +50,6 @@ static struct backend { const struct backend_ops *ops; } *backends = NULL; -static mode_t get_umask (guestfs_h *g); - int guestfs_impl_launch (guestfs_h *g) { @@ -75,6 +73,7 @@ guestfs_impl_launch (guestfs_h *g) guestfs_version (g); struct backend *b; CLEANUP_FREE char *backend = guestfs_get_backend (g); + int mask; debug (g, "launch: program=%s", g->pro...
2016 May 21
1
[PATCH] umask: Use /proc/<PID>/status to read umask in Linux >= 4.7.
.../ #include <config.h> #include <stdio.h> #include <stdlib.h> +#include <stdbool.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> @@ -35,21 +45,81 @@ #include "guestfs.h" #include "guestfs-internal.h" +static int get_umask_from_proc (guestfs_h *g); +static int get_umask_from_fork (guestfs_h *g); + /** - * glibc documents, but does not actually implement, a L<getumask(3)> - * call. - * - * This function implements an expensive, but thread-safe way to get - * the current process's umask. - * * Returns the...
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...arg (cmd, "-a"); diff --git a/src/launch.c b/src/launch.c index fd5479e..343f4ea 100644 --- a/src/launch.c +++ b/src/launch.c @@ -86,7 +86,7 @@ guestfs_impl_launch (guestfs_h *g) debug (g, "launch: tmpdir=%s", g->tmpdir); debug (g, "launch: umask=0%03o", get_umask (g)); - debug (g, "launch: euid=%d", geteuid ()); + debug (g, "launch: euid=%ju", (uintmax_t) geteuid ()); } /* Launch the appliance. */ diff --git a/src/proto.c b/src/proto.c index 4ddd164..815a4d2 100644 --- a/src/proto.c +++ b/src/proto.c @@ -527,7 +527,7 @@ rec...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...arg (cmd, "-a"); diff --git a/src/launch.c b/src/launch.c index fd5479e..343f4ea 100644 --- a/src/launch.c +++ b/src/launch.c @@ -86,7 +86,7 @@ guestfs_impl_launch (guestfs_h *g) debug (g, "launch: tmpdir=%s", g->tmpdir); debug (g, "launch: umask=0%03o", get_umask (g)); - debug (g, "launch: euid=%d", geteuid ()); + debug (g, "launch: euid=%ju", (uintmax_t) geteuid ()); } /* Launch the appliance. */ diff --git a/src/proto.c b/src/proto.c index 4ddd164..815a4d2 100644 --- a/src/proto.c +++ b/src/proto.c @@ -527,7 +527,7 @@ rec...
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.