1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/net/samba45/files/patch-source3__utils__net.c
2017-03-24 23:44:02 +00:00

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) {