mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
3b073349d9
Security: CVE-2017-2619
19 lines
539 B
C
19 lines
539 B
C
--- source3/utils/net.c.orig 2016-01-26 11:45:46 UTC
|
|
+++ source3/utils/net.c
|
|
@@ -945,8 +945,13 @@ static struct functable net_func[] = {
|
|
lp_set_cmdline("netbios name", c->opt_requester_name);
|
|
}
|
|
|
|
- if (!c->opt_user_name && getenv("LOGNAME")) {
|
|
- c->opt_user_name = getenv("LOGNAME");
|
|
+ if (!c->opt_user_name) {
|
|
+ if(getenv("LOGNAME"))
|
|
+ c->opt_user_name = getenv("LOGNAME");
|
|
+ else
|
|
+ d_fprintf(stderr,
|
|
+ _("Environment LOGNAME is not defined."
|
|
+ " Trying anonymous access.\n"));
|
|
}
|
|
|
|
if (!c->opt_workgroup) {
|