summaryrefslogtreecommitdiff
path: root/net/samba41/files/patch-source3__utils__net.c
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2014-01-13 23:30:52 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2014-01-13 23:30:52 +0000
commitc755a680b5cdf95699204f29bae336936af6911b (patch)
tree61be0f8a8d3111af1eb3ca9f57a0040450db79e4 /net/samba41/files/patch-source3__utils__net.c
parentUpdate ICBM coordinates. Darn, all this time I was inactive I thought (diff)
Add new 4.1 branch of the Samba suite.
Sponsored by: aliens
Diffstat (limited to 'net/samba41/files/patch-source3__utils__net.c')
-rw-r--r--net/samba41/files/patch-source3__utils__net.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/samba41/files/patch-source3__utils__net.c b/net/samba41/files/patch-source3__utils__net.c
new file mode 100644
index 000000000000..aa4853a7624e
--- /dev/null
+++ b/net/samba41/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) {