summaryrefslogtreecommitdiff
path: root/net/samba4/files/patch-source3__utils__net.c
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2013-02-18 14:24:56 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2013-02-18 14:24:56 +0000
commitae6b9a8f6da49f4351a36b761a4dc023f6014f9f (patch)
tree9fd594825c87fe03caad4a7e4245110a6ab052a9 /net/samba4/files/patch-source3__utils__net.c
parentMove samba4-devel port into samba4. Preparing for the release (diff)
New 4.0.3 revision of the net/samba4 port. Now we have our own AD!
Diffstat (limited to 'net/samba4/files/patch-source3__utils__net.c')
-rw-r--r--net/samba4/files/patch-source3__utils__net.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/samba4/files/patch-source3__utils__net.c b/net/samba4/files/patch-source3__utils__net.c
new file mode 100644
index 000000000000..aa4853a7624e
--- /dev/null
+++ b/net/samba4/files/patch-source3__utils__net.c
@@ -0,0 +1,18 @@
+--- ./source3/utils/net.c.orig 2013-01-29 08:49:31.000000000 +0000
++++ ./source3/utils/net.c 2013-01-31 15:04:24.069877314 +0000
+@@ -898,8 +898,13 @@
+ set_global_myname(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) {