Displaying 2 results from an estimated 2 matches for "ctxstr".
2016 Oct 31
1
[PATCH] handle: Improve error messaging if XDG_RUNTIME_DIR path does not exist.
...100644
--- a/src/tmpdirs.c
+++ b/src/tmpdirs.c
@@ -39,9 +39,14 @@
* We need to make all tmpdir paths absolute because lots of places in
* the code assume this. Do it at the time we set the path or read
* the environment variable (L<https://bugzilla.redhat.com/882417>).
+ *
+ * The C<ctxstr> parameter is a string displayed in error messages
+ * giving the context of the operation (eg. name of environment
+ * variable being used, or API function being called).
*/
static int
-set_abs_path (guestfs_h *g, const char *tmpdir, char **tmpdir_ret)
+set_abs_path (guestfs_h *g, const char...
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...s’ does not support discard"),
guestfs_int_drive_protocol_to_string (drv->src.protocol));
}
diff --git a/lib/tmpdirs.c b/lib/tmpdirs.c
index 7d289a650..344475d1b 100644
--- a/lib/tmpdirs.c
+++ b/lib/tmpdirs.c
@@ -74,7 +74,7 @@ set_abs_path (guestfs_h *g, const char *ctxstr,
}
if (!S_ISDIR (statbuf.st_mode)) {
- error (g, _("%s: %s: '%s' is not a directory"),
+ error (g, _("%s: %s: ‘%s’ is not a directory"),
_("setting temporary directory"), ctxstr, tmpdir);
return -1;
}
diff --git a/make-fs/make-...