mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 20:50:31 -04:00
Still experimental and version 4.7.4 is coming shortly, so test before putting into production. Happy birthday release. Sponsored by: iXsystems Inc.
18 lines
541 B
C
18 lines
541 B
C
--- source3/utils/net.c.orig 2017-07-04 10:05:26 UTC
|
|
+++ source3/utils/net.c
|
|
@@ -1087,8 +1087,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) {
|