summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/lpmove.c
diff options
context:
space:
mode:
authorKeerthi Kondaka <Keerthi.Kondaka@Sun.COM>2010-05-17 22:38:13 -0700
committerKeerthi Kondaka <Keerthi.Kondaka@Sun.COM>2010-05-17 22:38:13 -0700
commit47129df6a4ecc85627c83c26614505a023c155c3 (patch)
tree21260b1f49d33aabc9a1aad0dd13187543d4a685 /usr/src/cmd/print/bsd-sysv-commands/lpmove.c
parent3f7d54a6b84904c8f4d8daa4c7b577bede7df8b9 (diff)
downloadillumos-joyent-47129df6a4ecc85627c83c26614505a023c155c3.tar.gz
6933940 lpmove(1M) does not print localized message when unprivileged user performs lpmove(1M).
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpmove.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lpmove.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpmove.c b/usr/src/cmd/print/bsd-sysv-commands/lpmove.c
index 440c43dc17..15cb076ef1 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lpmove.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lpmove.c
@@ -20,9 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- *
+ * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/* $Id: lpmove.c 146 2006-03-24 00:26:54Z njacobs $ */
@@ -142,13 +140,20 @@ main(int ac, char *av[])
* user is denied
* permission
*/
- fprintf(stderr, gettext(
- "UX:lpmove: ERROR:"\
- " You aren't allowed"\
- " to do that.\n\t"\
- " TO FIX: You must"\
- " be logged in as"\
- " \"lp\" or \"root\".\n"));
+ fprintf(stderr, "UX:lpmove: ");
+ fprintf(stderr,
+ gettext("ERROR: "));
+ fprintf(stderr, gettext("You "
+ "aren't allowed to do"
+ " that."));
+ fprintf(stderr, "\n\t");
+ fprintf(stderr,
+ gettext("TO FIX"));
+ fprintf(stderr, ": ");
+ fprintf(stderr, gettext("You "
+ "must be logged in as "
+ "\"lp\" or \"root\"."));
+ fprintf(stderr, "\n");
exit_code = 1;
} else {
fprintf(stderr, gettext(