Modify

Opened 6 years ago

Last modified 4 years ago

#10119 new defect

maccalc says "failed to read from stdin"

Reported by: mikko@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: maccalc Cc:

Description

svn rev 28033, platform rt305x.
maccalc randomly fails to read data from stdin.

See the following examples.
Workaround: use hexdump and sed instead to print out macs.

root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | hexdump
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.000396 seconds, 14.8KB/s
0000000 3baf 470e 5010
0000006
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | hexdump
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.000392 seconds, 14.9KB/s
0000000 d60a bd43 7158
0000006
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | hexdump
0000000 34ae 7c22 8846
0000006
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.001848 seconds, 3.2KB/s
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | hexdump
0000000 f16e c4fb 9d10
0000006
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.001845 seconds, 3.2KB/s
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | hexdump
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.000396 seconds, 14.8KB/s
0000000 ca36 073b 73ec
0000006
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | maccalc bin2mac
failed to read from stdin
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | maccalc bin2mac
failed to read from stdin
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | maccalc bin2mac
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.000396 seconds, 14.8KB/s
6a:27:0a:88:15:59
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | maccalc bin2mac
6+0 records in
6+0 records out
6 bytes (6B) copied, 0.000412 seconds, 14.2KB/s
aa:ad:7b:7a:3e:f7
root@OpenWrt:/tmp# dd bs=1 skip=40 count=6 if=/dev/urandom | maccalc bin2mac
failed to read from stdin

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.