2000-06-30 01:47:44 +00:00
|
|
|
--- server/misc.c~ Fri Jul 29 12:03:54 1994
|
|
|
|
+++ server/misc.c Fri Jun 30 10:16:39 2000
|
|
|
|
@@ -788,12 +788,19 @@
|
|
|
|
|
|
|
|
if (client->username && client->username[0]) {
|
|
|
|
if (client->groupname && client->groupname[0]) {
|
|
|
|
+ if (strlen(DDUSER) + strlen(client->username) +
|
|
|
|
+ strlen(DDGROUP) + strlen(client->groupname) +
|
2000-06-30 04:35:23 +00:00
|
|
|
+ strlen(DDPATH) + 4 >= 256)
|
2000-06-30 01:47:44 +00:00
|
|
|
+ return ( -1 );
|
|
|
|
sprintf(dichome, "%s/%s:%s/%s:%s",
|
|
|
|
DDUSER, client->username,
|
|
|
|
DDGROUP, client->groupname,
|
|
|
|
DDPATH);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
+ if (strlen(DDUSER) + strlen(client->username) +
|
2000-06-30 04:35:23 +00:00
|
|
|
+ strlen(DDPATH) + 2 >= 256)
|
2000-06-30 01:47:44 +00:00
|
|
|
+ return ( -1 );
|
|
|
|
sprintf(dichome, "%s/%s:%s",
|
|
|
|
DDUSER, client->username,
|
|
|
|
DDPATH);
|