[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH rhel5] Do not crash when more than 32 tape devices are present (#476186)
- From: Radek Vykydal <rvykydal redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH rhel5] Do not crash when more than 32 tape devices are present (#476186)
- Date: Wed, 25 Feb 2009 14:19:42 +0100
Instead of traceback, ignore other than first 32 tape devices
during install. Proposed patch applied.
---
isys/devnodes.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/isys/devnodes.c b/isys/devnodes.c
index 0ef2301..6fa7079 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -280,6 +280,9 @@ int devMakeInode(char * devName, char * path) {
s = strcspn(devName, digits);
errno = 0;
minor = strtol(devName+s, &e, 10);
+ /* Silently ignore tape drives 32 and above */
+ if (minor > 31)
+ return 0;
if (e == devName + s ||
(errno == ERANGE &&
(minor == LONG_MIN || minor == LONG_MAX)))
--
1.5.4.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]