-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: execve()
gives ": unknown program '''" if you run ./a.out once you compile with clang/g++
#20242
Comments
Have removed lots to reduce this. |
Playstore build is deprecated and should not be used. Use F-droid or github release. |
Am not allowed to use this phone to install from third-party sources. |
Seems pretty obvious that error comes from: execve(args[0], NULL, NULL); What do you expect execve to do with NULL as argv[]? |
Used all possible variations, all failed. |
This isn't a "third party" issue. What you seem to be dealing with is a fundamental lack of experience with the C programming language. |
The top result on Google (for how to use C/C++ to execute Bash): https://stackoverflow.com/a/30149941/24473928
Passes args to Lots of businesses do not allow you to use devices with apps that do not from Google app stores: https://natlawreview.com/article/mitigating-rising-risk-corporate-use-third-party-apps |
What are you even on about, read the comment by grimler above. You are passing Your second issue is that your Read the manpage for
https://man7.org/linux/man-pages/man3/exec.3.html Basically, these are not issues with termux (playstore or fdroid/github), but your own code. The only issue related to
There have been 10 app version releases on fdroid/github since last playstore release, with massive addition in changes and bug and security/vulnerability fixes. We in no way recommend installing termux from playstore or support it. https://github.com/termux/termux-app#google-play-store-deprecated |
I just checked and there is already a comment under it for "You need NULL in the last element of args", same as I said. Answers at stackoverflow, etc should not be used without understanding what they are doing or trusting them blindly, there are tonne of wrong and dangerous answers there. Always read official docs and man pages when running things. |
Cool, bless you To install fdroid.apk (or termux.apk) gives this error (and most businesses do not allow you to use your own device if you change this): |
What exactly do you mean? |
Use |
Problem description
What steps will reproduce the bug?
Install latest Termux from Google Store, install latest
clang
from official repos on TermuxWhat is the expected behavior?
Should output directory contents as list
System information
The text was updated successfully, but these errors were encountered: