uudecode: correct error message
PR: 153276 Reported by: David Brennan
This commit is contained in:
parent
d5d3f5dab2
commit
9f3203c003
@ -353,7 +353,7 @@ uu_decode(void)
|
|||||||
|
|
||||||
#define OUT_OF_RANGE do { \
|
#define OUT_OF_RANGE do { \
|
||||||
warnx("%s: %s: character out of range: [%d-%d]", \
|
warnx("%s: %s: character out of range: [%d-%d]", \
|
||||||
infile, outfile, 1 + ' ', 077 + ' ' + 1); \
|
infile, outfile, ' ', 077 + ' ' + 1); \
|
||||||
return (1); \
|
return (1); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
4
usr.bin/uuencode/tests/regress.153276.in
Normal file
4
usr.bin/uuencode/tests/regress.153276.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
begin 644 153276
|
||||||
|
/5&AI<R!I<R!A('1E<W0*
|
||||||
|
|
||||||
|
end
|
1
usr.bin/uuencode/tests/regress.153276.out
Normal file
1
usr.bin/uuencode/tests/regress.153276.out
Normal file
@ -0,0 +1 @@
|
|||||||
|
uudecode: stdin: /dev/null: character out of range: [32-96]
|
@ -7,4 +7,7 @@ REGRESSION_START($1)
|
|||||||
REGRESSION_TEST(`traditional', `uuencode regress.in <${SRCDIR}/regress.in')
|
REGRESSION_TEST(`traditional', `uuencode regress.in <${SRCDIR}/regress.in')
|
||||||
REGRESSION_TEST(`base64', `uuencode -m regress.in <${SRCDIR}/regress.in')
|
REGRESSION_TEST(`base64', `uuencode -m regress.in <${SRCDIR}/regress.in')
|
||||||
|
|
||||||
|
# was uudecode: stdin: /dev/null: character out of range: [33-96]
|
||||||
|
REGRESSION_TEST(`153276', `uudecode -o /dev/null < regress.153276.in 2>&1')
|
||||||
|
|
||||||
REGRESSION_END()
|
REGRESSION_END()
|
||||||
|
Loading…
Reference in New Issue
Block a user