X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fdevice_open.c;h=c788b698261af83280668d99db6e40154a4b53ce;hb=becd8c538cc689460dca83ecc92222969059c5f4;hp=d34557b5a895253f6f19304ae6da1a8864f09c75;hpb=b1629b1b2abc17a6430e4173d64d7956784118e0;p=oweals%2Fbusybox.git diff --git a/libbb/device_open.c b/libbb/device_open.c index d34557b5a..c788b6982 100644 --- a/libbb/device_open.c +++ b/libbb/device_open.c @@ -20,6 +20,7 @@ int device_open(const char *device, int mode) m = mode | O_NONBLOCK; /* Retry up to 5 times */ + /* TODO: explain why it can't be considered insane */ for (f = 0; f < 5; f++) if ((fd = open(device, m, 0600)) >= 0) break;