aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-05-23 12:43:33 +0200
committerDan Gudmundsson <[email protected]>2017-05-23 12:48:38 +0200
commit13f07042fd333c9bc137e142c4dc24b7d5cbe909 (patch)
tree8119a381775e32bcdc8a943deb55b1001cbd2c86 /erts/etc/common
parentdfbefdcc85b2785e4d2280c1b70de8fd14a6778d (diff)
downloadotp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.tar.gz
otp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.tar.bz2
otp-13f07042fd333c9bc137e142c4dc24b7d5cbe909.zip
Revert setting default argv0 name
Changing argv[0] from emu name to progname if ESCRIPT_NAME was not set caused to many failing scripts, revert that part of the change. See 86f6a9856
Diffstat (limited to 'erts/etc/common')
-rw-r--r--erts/etc/common/erlexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c
index 70520eea15..51ed2d0dff 100644
--- a/erts/etc/common/erlexec.c
+++ b/erts/etc/common/erlexec.c
@@ -555,7 +555,7 @@ int main(int argc, char **argv)
if(s) {
add_Eargs(s); /* argv[0] = scriptname*/
} else {
- add_Eargs(progname); /* argv[0] = erl or cerl */
+ add_Eargs(emu); /* argv[0] = erl or cerl */
}
/*
* Add the bindir to the path (unless it is there already).