diff options
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r-- | coreutils/uudecode.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index fcfcfd903..cccc52872 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -46,7 +46,7 @@ static int read_stduu (const char *inname) | |||
46 | char *p; | 46 | char *p; |
47 | 47 | ||
48 | if (fgets (buf, sizeof(buf), stdin) == NULL) { | 48 | if (fgets (buf, sizeof(buf), stdin) == NULL) { |
49 | error_msg("%s: Short file\n", inname); | 49 | error_msg("%s: Short file", inname); |
50 | return FALSE; | 50 | return FALSE; |
51 | } | 51 | } |
52 | p = buf; | 52 | p = buf; |
@@ -81,7 +81,7 @@ static int read_stduu (const char *inname) | |||
81 | 81 | ||
82 | if (fgets (buf, sizeof(buf), stdin) == NULL | 82 | if (fgets (buf, sizeof(buf), stdin) == NULL |
83 | || strcmp (buf, "end\n")) { | 83 | || strcmp (buf, "end\n")) { |
84 | error_msg("%s: No `end' line\n", inname); | 84 | error_msg("%s: No `end' line", inname); |
85 | return FALSE; | 85 | return FALSE; |
86 | } | 86 | } |
87 | 87 | ||
@@ -131,7 +131,7 @@ static int read_base64 (const char *inname) | |||
131 | unsigned char *p; | 131 | unsigned char *p; |
132 | 132 | ||
133 | if (fgets (buf, sizeof(buf), stdin) == NULL) { | 133 | if (fgets (buf, sizeof(buf), stdin) == NULL) { |
134 | error_msg("%s: Short file\n", inname); | 134 | error_msg("%s: Short file", inname); |
135 | return FALSE; | 135 | return FALSE; |
136 | } | 136 | } |
137 | p = buf; | 137 | p = buf; |
@@ -139,7 +139,7 @@ static int read_base64 (const char *inname) | |||
139 | if (memcmp (buf, "====", 4) == 0) | 139 | if (memcmp (buf, "====", 4) == 0) |
140 | break; | 140 | break; |
141 | if (last_data != 0) { | 141 | if (last_data != 0) { |
142 | error_msg("%s: data following `=' padding character\n", inname); | 142 | error_msg("%s: data following `=' padding character", inname); |
143 | return FALSE; | 143 | return FALSE; |
144 | } | 144 | } |
145 | 145 | ||
@@ -161,14 +161,14 @@ static int read_base64 (const char *inname) | |||
161 | 161 | ||
162 | while ((b64_tab[*p] & '\100') != 0) | 162 | while ((b64_tab[*p] & '\100') != 0) |
163 | if (*p == '\n' || *p++ == '=') { | 163 | if (*p == '\n' || *p++ == '=') { |
164 | error_msg("%s: illegal line\n", inname); | 164 | error_msg("%s: illegal line", inname); |
165 | return FALSE; | 165 | return FALSE; |
166 | } | 166 | } |
167 | c2 = b64_tab[*p++]; | 167 | c2 = b64_tab[*p++]; |
168 | 168 | ||
169 | while (b64_tab[*p] == '\177') | 169 | while (b64_tab[*p] == '\177') |
170 | if (*p++ == '\n') { | 170 | if (*p++ == '\n') { |
171 | error_msg("%s: illegal line\n", inname); | 171 | error_msg("%s: illegal line", inname); |
172 | return FALSE; | 172 | return FALSE; |
173 | } | 173 | } |
174 | if (*p == '=') { | 174 | if (*p == '=') { |
@@ -180,7 +180,7 @@ static int read_base64 (const char *inname) | |||
180 | 180 | ||
181 | while (b64_tab[*p] == '\177') | 181 | while (b64_tab[*p] == '\177') |
182 | if (*p++ == '\n') { | 182 | if (*p++ == '\n') { |
183 | error_msg("%s: illegal line\n", inname); | 183 | error_msg("%s: illegal line", inname); |
184 | return FALSE; | 184 | return FALSE; |
185 | } | 185 | } |
186 | putchar (c1 << 2 | c2 >> 4); | 186 | putchar (c1 << 2 | c2 >> 4); |
@@ -212,7 +212,7 @@ static int decode (const char *inname, | |||
212 | 212 | ||
213 | while (1) { | 213 | while (1) { |
214 | if (fgets (buf, sizeof (buf), stdin) == NULL) { | 214 | if (fgets (buf, sizeof (buf), stdin) == NULL) { |
215 | error_msg("%s: No `begin' line\n", inname); | 215 | error_msg("%s: No `begin' line", inname); |
216 | return FALSE; | 216 | return FALSE; |
217 | } | 217 | } |
218 | 218 | ||
@@ -237,13 +237,13 @@ static int decode (const char *inname, | |||
237 | while (*p != '/') | 237 | while (*p != '/') |
238 | ++p; | 238 | ++p; |
239 | if (*p == '\0') { | 239 | if (*p == '\0') { |
240 | error_msg("%s: Illegal ~user\n", inname); | 240 | error_msg("%s: Illegal ~user", inname); |
241 | return FALSE; | 241 | return FALSE; |
242 | } | 242 | } |
243 | *p++ = '\0'; | 243 | *p++ = '\0'; |
244 | pw = getpwnam (buf + 1); | 244 | pw = getpwnam (buf + 1); |
245 | if (pw == NULL) { | 245 | if (pw == NULL) { |
246 | error_msg("%s: No user `%s'\n", inname, buf + 1); | 246 | error_msg("%s: No user `%s'", inname, buf + 1); |
247 | return FALSE; | 247 | return FALSE; |
248 | } | 248 | } |
249 | n = strlen (pw->pw_dir); | 249 | n = strlen (pw->pw_dir); |