git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52c6b0d
)
Remove extra \n character from end of error messages.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 11 Dec 2010 23:07:56 +0000
(23:07 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 11 Dec 2010 23:07:56 +0000
(23:07 +0000)
src/appliance.c
patch
|
blob
|
history
diff --git
a/src/appliance.c
b/src/appliance.c
index
1740dfc
..
6d560ec
100644
(file)
--- a/
src/appliance.c
+++ b/
src/appliance.c
@@
-329,17
+329,17
@@
check_for_cached_appliance (guestfs_h *g,
if (lstat (cachedir, &statbuf) == -1)
return 0;
if (statbuf.st_uid != uid) {
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)) {
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) {
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;
}
cachedir, statbuf.st_mode);
return -1;
}