Skip to contentSkip to conversation

quota-tools: add missing newline to die() messages

PATCH In review Theodore Ts'o 2 participants 2 messages Feb 9, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 quota-tools: add missing newline to die() messages

---
 edquota.c | 4 ++--
 quota.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
edquota.c +2 -2
index 71b28b6..cc6c4e2 100644
@@ -309,7 +309,7 @@ int main(int argc, char **argv)
 		 * reuse the file for editting the next user as well.
 		 */
 		if ((tmpfd = open(tmpfil, O_RDWR)) < 0)
-			die(1, _("Cannot reopen!"));
+			die(1, _("Cannot reopen!\n"));
 		if (stat(tmpfil, &st) < 0) {
 			errstr(_("Cannot stat file with times.\n"));
 			ret = -1;
@@ -361,7 +361,7 @@ int main(int argc, char **argv)
 			 * reuse the file for editting the next user as well.
 			 */
 			if ((tmpfd = open(tmpfil, O_RDWR)) < 0)
-				die(1, _("Cannot reopen!"));
+				die(1, _("Cannot reopen!\n"));
 			if (stat(tmpfil, &st) < 0) {
 				errstr(_("Cannot stat file with times.\n"));
 				ret = -1;
quota.c +1 -1
index c55e142..c8cc9b5 100644
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
 				ret |= showquotas(GRPQUOTA, gidsetp[i], argc, argv);
 		}
 		if (flags & FL_PROJECT)
-			die(1, _("Project reports not supported without project name"));
+			die(1, _("Project reports not supported without project name\n"));
 		exit(ret);
 	}
 
Signature · 1 line
2.11.0.rc0.7.gbe5a750
reviewer
#1 lore raw

Thanks. Merged.

Honza

Quoted 44 lines · Ted Tso
---
 edquota.c | 4 ++--
 quota.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
edquota.c +2 -2
index 71b28b6..cc6c4e2 100644
@@ -309,7 +309,7 @@ int main(int argc, char **argv)
 		 * reuse the file for editting the next user as well.
 		 */
 		if ((tmpfd = open(tmpfil, O_RDWR)) < 0)
-			die(1, _("Cannot reopen!"));
+			die(1, _("Cannot reopen!\n"));
 		if (stat(tmpfil, &st) < 0) {
 			errstr(_("Cannot stat file with times.\n"));
 			ret = -1;
@@ -361,7 +361,7 @@ int main(int argc, char **argv)
 			 * reuse the file for editting the next user as well.
 			 */
 			if ((tmpfd = open(tmpfil, O_RDWR)) < 0)
-				die(1, _("Cannot reopen!"));
+				die(1, _("Cannot reopen!\n"));
 			if (stat(tmpfil, &st) < 0) {
 				errstr(_("Cannot stat file with times.\n"));
 				ret = -1;
quota.c +1 -1
index c55e142..c8cc9b5 100644
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
 				ret |= showquotas(GRPQUOTA, gidsetp[i], argc, argv);
 		}
 		if (flags & FL_PROJECT)
-			die(1, _("Project reports not supported without project name"));
+			die(1, _("Project reports not supported without project name\n"));
 		exit(ret);
 	}
 
Signature · 1 line
2.11.0.rc0.7.gbe5a750
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR