qfile-dom0-unpacker: add newlines to error messages

This commit is contained in:
Vincent Penquerc'h 2014-01-12 06:40:20 -05:00 committed by Marek Marczykowski-Górecki
parent e6a5210d08
commit f4551e7698

View File

@ -68,11 +68,11 @@ int main(int argc, char ** argv)
incoming_dir = argv[2]; incoming_dir = argv[2];
mkdir(incoming_dir, 0700); mkdir(incoming_dir, 0700);
if (chdir(incoming_dir)) { if (chdir(incoming_dir)) {
fprintf(stderr, "Error chdir to %s", incoming_dir); fprintf(stderr, "Error chdir to %s\n", incoming_dir);
exit(1); exit(1);
} }
if (chroot(incoming_dir)) {//impossible if (chroot(incoming_dir)) {//impossible
fprintf(stderr, "Error chroot to %s", incoming_dir); fprintf(stderr, "Error chroot to %s\n", incoming_dir);
exit(1); exit(1);
} }
if (setuid(uid) < 0) { if (setuid(uid) < 0) {