diff options
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r-- | source3/utils/net_rpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index e8667cbf7b..0060a39c31 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -395,6 +395,13 @@ int net_rpc_join(int argc, const char **argv) return -1; } + if (strlen(global_myname()) > 15) { + d_printf("Our netbios name can only be 15 chars long, \"%s\"" + " is %d chars long\n", + global_myname(), strlen(global_myname())); + return -1; + } + if ((net_rpc_perform_oldjoin(argc, argv) == 0)) return 0; |