mirror of
https://github.com/clearlinux/usrbinjava.git
synced 2026-08-18 21:26:09 +00:00
Use basename to get command
Signed-off-by: Athenas Jimenez <athenas.jimenez.gonzalez@intel.com>
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
strcat(java, "/bin/");
|
||||
strncat(java, argv[0], 25);
|
||||
strncat(java, basename(argv[0]), 25);
|
||||
|
||||
// If cannot access
|
||||
if (access(java, X_OK)) {
|
||||
|
||||
Reference in New Issue
Block a user