summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--disk-utils/cfdisk.82
-rw-r--r--disk-utils/sfdisk.84
-rw-r--r--misc-utils/kill.12
-rw-r--r--misc-utils/logger.12
-rw-r--r--sys-utils/losetup.82
-rw-r--r--term-utils/script.c12
6 files changed, 11 insertions, 13 deletions
diff --git a/disk-utils/cfdisk.8 b/disk-utils/cfdisk.8
index ff95aa9dc..68cec9492 100644
--- a/disk-utils/cfdisk.8
+++ b/disk-utils/cfdisk.8
@@ -190,7 +190,7 @@ enables libsmartcols debug output.
.BR sfdisk (8),
.BR parted (8),
.BR partprobe (8),
-.BR partx(8)
+.BR partx (8)
.SH AUTHOR
Karel Zak <kzak@redhat.com>
.PP
diff --git a/disk-utils/sfdisk.8 b/disk-utils/sfdisk.8
index 79424c526..0c13a4885 100644
--- a/disk-utils/sfdisk.8
+++ b/disk-utils/sfdisk.8
@@ -441,7 +441,7 @@ The GPT header can later be restored by:
.RE
Note that \fBsfdisk\fR since version 2.26 no longer provides the \fB\-I\fR option to
restore sectors.
-.B dd (1)
+.BR dd (1)
provides all necessary functionality.
.SH COLORS
@@ -487,7 +487,7 @@ enables libsmartcols debug output.
.BR cfdisk (8),
.BR parted (8),
.BR partprobe (8),
-.BR partx(8)
+.BR partx (8)
.SH AUTHOR
Karel Zak <kzak@redhat.com>
diff --git a/misc-utils/kill.1 b/misc-utils/kill.1
index 2d8c88377..d3dc20e0d 100644
--- a/misc-utils/kill.1
+++ b/misc-utils/kill.1
@@ -118,7 +118,7 @@ It is not possible to send a signal to an explicitly selected thread in a
multithreaded process using the
.BR kill (2)
syscall. If
-.BR kill(2)
+.BR kill (2)
is used to send a signal to a thread group, then the kernel selects an arbitrary
member of the thread group that has not blocked the signal. For more details
see
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index 017a66bf0..e30af9897 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -75,7 +75,7 @@ command's PID. The use of \fB\-\-id=$$\fR
Note that the system logging infrastructure (for example \fBsystemd\fR when
listening on /dev/log) may follow local socket credentials to overwrite the
PID specified in the message.
-.BR logger(1)
+.BR logger (1)
is able to set those socket credentials to the given \fIid\fR, but only if you
have root permissions and a process with the specified PID exists, otherwise
the socket credentials are not modified and the problem is silently ignored.
diff --git a/sys-utils/losetup.8 b/sys-utils/losetup.8
index dbc909594..b614416df 100644
--- a/sys-utils/losetup.8
+++ b/sys-utils/losetup.8
@@ -151,7 +151,7 @@ Display help text and exit.
.SH ENCRYPTION
.B Cryptoloop is no longer supported in favor of dm-crypt.
-.B For more details see cryptsetup (8).
+.B For more details see cryptsetup(8).
.SH RETURN VALUE
.B losetup
diff --git a/term-utils/script.c b/term-utils/script.c
index d2eaafb8f..e90644aed 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -195,7 +195,7 @@ static void __attribute__((__noreturn__)) done(struct script_control *ctl)
if (ctl->isterm)
tcsetattr(STDIN_FILENO, TCSADRAIN, &ctl->attrs);
- if (!ctl->quiet)
+ if (!ctl->quiet && ctl->typescriptfp)
printf(_("Script done, file is %s\n"), ctl->fname);
#ifdef HAVE_LIBUTEMPTER
if (ctl->master >= 0)
@@ -203,12 +203,10 @@ static void __attribute__((__noreturn__)) done(struct script_control *ctl)
#endif
kill(ctl->child, SIGTERM); /* make sure we don't create orphans */
- if (ctl->timingfp)
- if (close_stream(ctl->timingfp) != 0)
- err(EXIT_FAILURE, "write failed: %s", ctl->tname);
- if (ctl->typescriptfp)
- if (close_stream(ctl->typescriptfp) != 0)
- err(EXIT_FAILURE, "write failed: %s", ctl->fname);
+ if (ctl->timingfp && close_stream(ctl->timingfp) != 0)
+ err(EXIT_FAILURE, "write failed: %s", ctl->tname);
+ if (ctl->typescriptfp && close_stream(ctl->typescriptfp) != 0)
+ err(EXIT_FAILURE, "write failed: %s", ctl->fname);
if (ctl->rc_wanted) {
if (WIFSIGNALED(ctl->childstatus))