I can't recall anymore what exactly I did to have tests using t_mtab
to fail, but nevertheless this commit adds the proper newlines.
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
/* Ensure that the lock is released if we are interrupted. */
static void
handler (int sig) {
/* Ensure that the lock is released if we are interrupted. */
static void
handler (int sig) {
- fprintf(stderr, "%s", sys_siglist[sig]);
+ fprintf(stderr, "%s\n", sys_siglist[sig]);
Too many files open in the system?
Filesystem full? */
fprintf(stderr, "can't create lock file %s: %s "
Too many files open in the system?
Filesystem full? */
fprintf(stderr, "can't create lock file %s: %s "
- "(use -n flag to override)",
+ "(use -n flag to override)\n",
linktargetfile, strerror (errsv));
exit(1);
}
linktargetfile, strerror (errsv));
exit(1);
}
if (j < 0 && errsv != EEXIST) {
fprintf(stderr, "can't link lock file %s: %s "
if (j < 0 && errsv != EEXIST) {
fprintf(stderr, "can't link lock file %s: %s "
- "(use -n flag to override)",
+ "(use -n flag to override)\n",
mounted_lock, strerror (errsv));
exit(1);
}
mounted_lock, strerror (errsv));
exit(1);
}
if (fcntl (fd, F_SETLKW, &flock) == -1 &&
errno != EBUSY && errno != EAGAIN) {
int errsv = errno;
if (fcntl (fd, F_SETLKW, &flock) == -1 &&
errno != EBUSY && errno != EAGAIN) {
int errsv = errno;
- fprintf(stderr, "can't lock lock file %s: %s",
+ fprintf(stderr, "can't lock lock file %s: %s\n",
mounted_lock, (errno == EINTR) ?
_("timed out") : strerror (errsv));
exit(1);
mounted_lock, (errno == EINTR) ?
_("timed out") : strerror (errsv));
exit(1);