Changeset 432 for trunk


Ignore:
Timestamp:
Oct 2, 2014, 1:18:17 AM (11 years ago)
Author:
dmik
Message:

icedtea-web: Requre PATH-located java to reside in bin/.

This is to kind of make sure that there is also lib/ where
rt.jar is expected to be.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.cc

    r392 r432  
    7979            }
    8080            if (!ok)
    81                 strcpy(buf, ".");
     81                buf[0] = '\0';
    8282        }
    8383        home = buf;
     
    110110                {
    111111                    *end = '\0';
    112                     ok = TRUE;
    113                     // truncate \bin if present
     112                    // truncate \bin if present (otherwise this path is considered invalid)
    114113                    end = strrchr(buf, '\\');
    115114                    if (end && stricmp(end + 1, "bin") == 0)
     115                    {
    116116                        *end = '\0';
     117                        ok = TRUE;
     118                    }
    117119                }
    118120            }
    119121            if (!ok)
    120                 strcpy(buf, ".");
     122                buf[0] = '\0';
    121123        }
    122124        jre = buf;
Note: See TracChangeset for help on using the changeset viewer.