1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

"pccardc dumpcis" does not need write permission of /dev/card?.

This commit is contained in:
Tatsumi Hosokawa 1998-02-27 07:27:27 +00:00
parent 47959c89b9
commit 26e41202ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33865

View File

@ -54,7 +54,7 @@ rdattr_main(argc, argv)
exit(1);
}
sprintf(name, CARD_DEVICE, atoi(argv[1]));
fd = open(name, 2);
fd = open(name, O_RDONLY);
if (fd < 0) {
perror(name);
exit(1);