File 0027-Remove-extra-n-character-from-end-of-error-messages.patch of Package libguestfs
From c26a2aa2917b3546c29e9e06a63237c650de82d4 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones <rjones@redhat.com>
Date: Sat, 11 Dec 2010 23:07:56 +0000
Subject: [PATCH 27/72] Remove extra \n character from end of error messages.
(cherry picked from commit 3d114fcf84372c52ea769c4bb8efa572936f1f5a)
---
src/appliance.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/appliance.c b/src/appliance.c
index 2962385..4039117 100644
--- a/src/appliance.c
+++ b/src/appliance.c
@@ -333,17 +333,17 @@ check_for_cached_appliance (guestfs_h *g,
if (lstat (cachedir, &statbuf) == -1)
return 0;
if (statbuf.st_uid != uid) {
- error (g, _("security: cached appliance %s is not owned by UID %d\n"),
+ error (g, _("security: cached appliance %s is not owned by UID %d"),
filename, uid);
return -1;
}
if (!S_ISDIR (statbuf.st_mode)) {
- error (g, _("security: cached appliance %s is not a directory (mode %o)\n"),
+ error (g, _("security: cached appliance %s is not a directory (mode %o)"),
filename, statbuf.st_mode);
return -1;
}
if ((statbuf.st_mode & 0022) != 0) {
- error (g, _("security: cached appliance %s is writable by group or other (mode %o)\n"),
+ error (g, _("security: cached appliance %s is writable by group or other (mode %o)"),
cachedir, statbuf.st_mode);
return -1;
}
--
1.7.1