search for: tmppath

Displaying 15 results from an estimated 15 matches for "tmppath".

Did you mean: _tmppath
2016 Feb 09
2
[PATCH 1/2] tmpdirs: centralize permissions handling
...read in this + * temporary directory; we are storing either sockets, or temporary + * disks which qemu needs to access to. (RHBZ#610880). + * We do this only for root, as for normal users qemu will be run + * under the same user. + */ + if (geteuid () == 0 && chmod (tmppath, 0755) == -1) { + perrorf (g, "chmod: %s", tmppath); + free (tmppath); + return -1; + } *dest = tmppath; } return 0; @@ -178,24 +189,7 @@ guestfs_int_lazy_make_tmpdir (guestfs_h *g) int guestfs_int_lazy_make_sockdir (guestfs_h *g) { - int ret; - uid_t eui...
2018 Feb 07
1
[PATCH] tmpdirs: Make the ‘su broken’ error message actionable.
...tatic int -lazy_make_tmpdir (guestfs_h *g, char *(*getdir) (guestfs_h *g), char **dest) +lazy_make_tmpdir (guestfs_h *g, + char *(*getdir) (guestfs_h *g), int is_runtime_dir, + char **dest) { if (!*dest) { CLEANUP_FREE char *tmpdir = getdir (g); char *tmppath = safe_asprintf (g, "%s/libguestfsXXXXXX", tmpdir); if (mkdtemp (tmppath) == NULL) { - int bad_systemd = errno == EACCES && STRPREFIX (tmpdir, "/run/user/"); + int bad_systemd = is_runtime_dir && errno == EACCES && + STRPREFIX (tmpdi...
2017 Dec 18
0
[PATCH] tmpdirs: Blame systemd because su is broken.
...h> #include <stdlib.h> +#include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <libintl.h> @@ -185,7 +186,12 @@ lazy_make_tmpdir (guestfs_h *g, char *(*getdir) (guestfs_h *g), char **dest) CLEANUP_FREE char *tmpdir = getdir (g); char *tmppath = safe_asprintf (g, "%s/libguestfsXXXXXX", tmpdir); if (mkdtemp (tmppath) == NULL) { - perrorf (g, _("%s: cannot create temporary directory"), tmppath); + int bad_systemd = errno == EACCES && STRPREFIX (tmpdir, "/run/user/"); + + if (!bad_sy...
2008 May 15
2
config checks and service bounces
Puppeteers, I''ve seen things in the documentation to make me think this is possible but I''m not sure how to implement it. Here''s what I''d like to do: puppetd pulls down a config file, say httpd.conf BEFORE puppetd moves it to $path, I''d like to have it check it''s integrity with apachectl configtest IF configtest passes, then puppetd should
2015 Aug 21
3
rpmbuild dwz error
...z appear to be using /var/tmp for large temporary debug >> info files. This package generates over 30GB of debug data and I think >> it is filling up /var/tmp leading to the error. How can I tell >> rpmbuild to use an alternative temporary file location? > > Try to change %_tmppath in /usr/lib/rpm/macros or build in mock and place the whole chroot on a larger drive (/etc/mock/site-defaults.cfg). and if you do not need the debug packages, add %_enable_debug_packages 0 into your .rpmmacros file -- LF
2016 Feb 02
0
[PATCH 2/3] lib: extract lazy tmpdir creation helper
.../src/tmpdirs.c +++ b/src/tmpdirs.c @@ -119,6 +119,22 @@ guestfs_impl_get_cachedir (guestfs_h *g) return safe_strdup (g, str); } +static int +lazy_make_tmpdir (guestfs_h *g, char *(*getdir) (guestfs_h *g), char **dest) +{ + if (!*dest) { + CLEANUP_FREE char *tmpdir = getdir (g); + char *tmppath = safe_asprintf (g, "%s/libguestfsXXXXXX", tmpdir); + if (mkdtemp (tmppath) == NULL) { + perrorf (g, _("%s: cannot create temporary directory"), tmppath); + free (tmpdir); + return -1; + } + *dest = tmppath; + } + return 0; +} + /* The g->tmpdir (pe...
2007 Apr 16
1
CentOS 5.0 install fails every time.
...amfs path Unable to find temp path, going to use ramfs path Unable to find temp path, going to use ramfs path ... I tracked it down to this code in Anaconda... <code> def getTempPath(self): root = self.rootPath pathlist = [ "/var/tmp", "/tmp", "/." ] tmppath = None for p in pathlist: if (os.access(root + p, os.X_OK)): tmppath = root + p + "/" break if tmppath is None: log("Unable to find temp path, going to use ramfs path") return "/tmp/" return tmppath </cod...
2015 Aug 21
1
rpmbuild dwz error
...temporary debug >>>> info files. This package generates over 30GB of debug data and I think >>>> it is filling up /var/tmp leading to the error. How can I tell >>>> rpmbuild to use an alternative temporary file location? >>> >>> Try to change %_tmppath in /usr/lib/rpm/macros or build in mock and >>> place the whole chroot on a larger drive (/etc/mock/site-defaults.cfg). > > I set %_tmppath (in ~/.rpmmacros) and $TMPPATH (xz called by > find-debuginfo.sh uses it) and more parts of the build process used my > custom tmppath. B...
2016 Feb 02
6
[PATCH 1/3] launch: add internal helper for socket paths creation
Introduce an internal helper to create paths for sockets; will be useful for changing later the logic for placing sockets. --- src/guestfs-internal.h | 1 + src/launch-direct.c | 4 +++- src/launch-libvirt.c | 10 ++++++---- src/launch.c | 15 +++++++++++++++ 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index
2015 Aug 21
0
rpmbuild dwz error
...g /var/tmp for large temporary debug >>> info files. This package generates over 30GB of debug data and I think >>> it is filling up /var/tmp leading to the error. How can I tell >>> rpmbuild to use an alternative temporary file location? >> >> Try to change %_tmppath in /usr/lib/rpm/macros or build in mock and place the whole chroot on a larger drive (/etc/mock/site-defaults.cfg). I set %_tmppath (in ~/.rpmmacros) and $TMPPATH (xz called by find-debuginfo.sh uses it) and more parts of the build process used my custom tmppath. But dwz still uses large tempora...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...libxl_device_pci_remove_xenstore(libxl_ctx *ctx, uint32_t domid, libxl_device_pci *pcidev) +static int libxl_device_pci_remove_xenstore(libxl_gc *gc, uint32_t domid, libxl_device_pci *pcidev) { + libxl_ctx *ctx = libxl_gc_owner(gc); char *be_path, *num_devs_path, *num_devs, *xsdev, *tmp, *tmppath; int num, i, j; xs_transaction_t t; unsigned int domain = 0, bus = 0, dev = 0, func = 0; - be_path = libxl_sprintf(ctx, "%s/backend/pci/%d/0", libxl_xs_get_dompath(ctx, 0), domid); - num_devs_path = libxl_sprintf(ctx, "%s/num_devs", be_path); - num_devs...
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...n, node, in->buffer + offset, datalen)) { + send_error(conn, errno); + return; + } } else { /* Exists... */ - if (streq(vec[1], XS_WRITE_CREATE_EXCL)) - return send_error(conn, EEXIST); + if (streq(vec[1], XS_WRITE_CREATE_EXCL)) { + send_error(conn, EEXIST); + return; + } tmppath = tempfile(node_datafile(conn->transaction, node), in->buffer + offset, datalen); - if (!tmppath) - return send_error(conn, errno); + if (!tmppath) { + send_error(conn, errno); + return; + } commit_tempfile(tmppath); } add_change_node(conn->transaction, node, fa...
2015 Jul 01
2
Re: URI Handling Patch
Hi All, Here's the latest patch. I think this should address the problem. The query string is now only appended to the end of a URI in the HTTP and HTTPS cases. The add-uri test now passes, and 'make check' still passes. -- Gabriel
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...t; > +#include "llvm/ADT/OwningPtr.h" These should be sorted alphabetically except for the main header. > + > +namespace llvm { > + > + > +FileOutputBuffer::FileOutputBuffer(uint8_t *start, uint8_t *end, > + StringRef path, StringRef tmpPath) Missing an alignment space. > + : bufferStart(start), bufferEnd(end) { > + finalPath.assign(path); > + tempPath.assign(tmpPath); > +} > + > + > +FileOutputBuffer::~FileOutputBuffer() { > + // If not already commited, delete buffer and remove temp file. > + if ( bu...
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
I now have an implementation of FileOutputBuffer (OutputBuffer was already taken). The patch supports the functionality listed below and I've tested that it works for lld. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileOutputBuffer.patch Type: application/octet-stream Size: 25308 bytes Desc: not available URL: