[PATCH rhel5] Do not crash when more than 32 tape devices are present (#476186)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux