1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-21 20:50:31 -04:00
ports/net/samba47/files/patch-source3__utils__net.c
Timur I. Bakeyev 6b4c4bd993 Port of the latest stable Samba 4.7.3. With, hopefully, working ZFS provisioning and other fixes of long standing bugs.
Still experimental and version 4.7.4 is coming shortly, so test before putting into production.

Happy birthday release.

Sponsored by:	iXsystems Inc.
2017-12-17 06:43:52 +00:00

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